heliosdrm / GRUtils.jl

Tools for using the GR framework in Julia
Other
31 stars 6 forks source link

Font Size #59

Open otobrzo opened 4 years ago

otobrzo commented 4 years ago

It is possible to set the fontsize?

heliosdrm commented 4 years ago

Not yet. That feature could be added, but first it should be decided how much customizable that should be. E.g., the easiest would be using a general font scaling factor, which reduces the font size of all elements if it is < 1, or expands it if > 1.

However, maybe you were thinking on something else: e.g. different scaling factors for axes labels, ticks, titles, legends... That's still possible, but will take more work to ensure that it does not break things or worsens performance.

otobrzo commented 4 years ago

When preparing figures for publication I typically need to set font size in pt and figure size independently.

Second thing is strange behavior of x/ylabel positions as illustrated in attached figure.

subplot.pdf

heliosdrm commented 4 years ago

Thanks for reporting the issue.

If you need fine-graded customization of plot elements for publication, maybe using the Plots package - with GR backend, if you like other aspects of its plots - might be a better option.

otobrzo commented 4 years ago

I know the Plots package but I like the speed of GR and your matlab like syntax. Moreover, this interactivity in jupyter is what I want:-) interactive GR