Change size and dpi of plot in SolaraViz #2517
-
Hello! I was wondering whether it is possible to increase the size and dpi of a plot on the page when using make_space_component with SolaraViz? Since the function you give to post_process acts on an Axes object, I don't see how you would increase the plot size using this. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Good question and no idea. You can get the figure from the |
Beta Was this translation helpful? Give feedback.
Good question and no idea.
You can get the figure from the
Axes
instance (i.e.,ax.fig
), see matplotlib.Axes. Once you have the figure instance, you have access to all methods that are defined on the figure. See matplotlib.Figure. There are aset_size_inches
andset_dpi
method, so it should be possible to do this.