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

Tick label size adjustment #339

Closed
lee1043 opened this issue May 11, 2018 · 13 comments
Closed

Tick label size adjustment #339

lee1043 opened this issue May 11, 2018 · 13 comments
Labels
Milestone

Comments

@lee1043
Copy link
Contributor

lee1043 commented May 11, 2018

Is there any simple way to adjust font size for the tick labels, such as something like iso.xticklabels1.fontsize=10? I am struggling with too small font size for x,y tick labels and legend labels, couldn't find option to control the font size. Thanks!

screen shot 2018-05-11 at 2 55 01 pm

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

@lee1043 this is controlled via the template. I really need to do the notebook for template!

import vcs
templ = vcs.createtemplate()
to = vcs.createtextorientation()
to.height=20. # BIG!
templ.xlabel1.textorientation = to
x.plot(data,templ)

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

@doutriaux1 thanks, what about tick label over the color bar?

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

templ.legend.textoriention = To

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

screen shot 2018-05-11 at 3 16 06 pm

@doutriaux1 thanks, it is helpful. Do you have something similar for xticlabel1 location adjustment? On left side labels are overlapping with line.

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

@lee1043

templ.list() # Shows all attributes you can set
templ.ylabel1.list() # for left labels
templ.ylabel1.x -= .05 # move a bit more to the left

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

@lee1043 you also can control the horizontal alignemnt of your label, I think that it is your issue here

to.list()
to.halign= "right"

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

screen shot 2018-05-11 at 3 24 16 pm

@doutriaux1 issue solved. Thanks a lot!

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

@doutriaux1 one more question, can I move colarbar labels upward, so give some distance between numbers and colorbar?

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

@lee1043

templ.legend.y1 + =.05
templ.legend.y2 + =.05

@doutriaux1
Copy link
Contributor

doutriaux1 commented May 11, 2018

@lee1043 sorry what you want is:

templ.legend.offset += .05

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

@doutriaux1 but that moves colorbar itself. I want to fix colorbar but only move legend numbers above colorbar to upward, so bottom of numbers don't meet the upper line of colorbar

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

@doutriaux1 yes, thanks!

@lee1043
Copy link
Contributor Author

lee1043 commented May 11, 2018

templ.legend.offset += .01 works as I wanted. Thanks!

screen shot 2018-05-11 at 3 32 16 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants