You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, it seems that here the font size at which labels are drawn is set to a fixed multiple of the height of the plot window in normalized device coordinates.
it should be made possible somehow to adjust that.
concrete example: i am trying to produce a non 1:1, landscape-format plot. the only way i found to achieve that was the cumbersome method:
window_cm=np.array([0., 20, 0, 10])
gr.setwsviewport(*(1e-2*window_cm)) # screen window size in metersgr.setwswindow(0, 1, 0, 0.5) # rect in NDC coords to be scaled to the workspace windowp=Plot(viewport=(.1, .95, 0.05, .45)) # padding of plot into that rectp.xlabel='t'p.ylabel='mol number'# it seems currently impossible to change label size.
this means the NDC height is now only 0.5 instead of 1, so that my axis labels now come out as half the font size of the usual case with 1:1 aspect plots, with apparently no way to change that.
edit:
the window size in m on screen is incorrect on my iMac Retina screen. the window appears at half the desired size.
removed rant about missing documentation.
i found a way to produce my desired figure using matplotlib.animation with GR as backend, which works fine.
The text was updated successfully, but these errors were encountered:
hi, it seems that here the font size at which labels are drawn is set to a fixed multiple of the height of the plot window in normalized device coordinates.
it should be made possible somehow to adjust that.
concrete example: i am trying to produce a non 1:1, landscape-format plot. the only way i found to achieve that was the cumbersome method:
this means the NDC height is now only 0.5 instead of 1, so that my axis labels now come out as half the font size of the usual case with 1:1 aspect plots, with apparently no way to change that.
edit:
The text was updated successfully, but these errors were encountered: