Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attribute to scale entire plot (and it's attributes) proportionally to the size #3153

Closed
logankilpatrick opened this issue Nov 15, 2020 · 2 comments

Comments

@logankilpatrick
Copy link

It would be interesting to have a flag that could be set allowing the user to scale all scalable attributes of a plot with a single argument. That way, you don't need to set the font, line width, etc. manually when you make your plot size larger or smaller.

@daschw
Copy link
Member

daschw commented Nov 15, 2020

There is the thickness_scaling attribute:

plot(rand(10, 3), xguide="xguide", yguide="yguide", title="title")

thickness_scaling_1

plot(rand(10, 3), xguide="xguide", yguide="yguide", title="title", thickness_scaling=1.5)

thickness_scaling=1 5

@charlesbrodhead3
Copy link

Thanks. That works well for me, especially on higher resolution displays.
For the non-experts among us, the following can be used to apply to all plots:
default(size=(1200,800),thickness_scaling=2)

@t-bltg t-bltg closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants