Reputation: 38
I'm currently using the preview function of SymPy, with viewer set to "file". The link below should lead to an image that I made through SymPy.
My code:
from sympy.printing.preview import preview
preview(content, viewer="file", filename=filename)
Is there a way to increase the resolution of the image, or make it sharper?
Upvotes: 1
Views: 726
Reputation: 2433
You can set the DPI in the dvioptions
argument.
preview(content, viewer="file", filename=filename, dvioptions=['-D','1200'])
Upvotes: 1