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

Adjusting temperature plotting range #218

Open
perovskite13 opened this issue Nov 14, 2016 · 1 comment
Open

Adjusting temperature plotting range #218

perovskite13 opened this issue Nov 14, 2016 · 1 comment

Comments

@perovskite13
Copy link

Is there a way to adjust the temperature plotting range? I wish to plot the temperature contour plot from 12 to 24 degree, but I wonder whether which script I should adjust in order to do that :)

Ideally, I wish to have the graduated colour from light purple to red, but also with narrower range from 12 to 24 degree. Any tips or advice would be much appreciated! Thank you!

@jordansread
Copy link
Member

@perovskite13 part of this should be possible with the col_lim argument that is in plot_var, plot_temp, and plot_var_compare.

That variable takes a vector of length two, so the syntax would look like:

plot_var(file = "output.nc", var_name = 'temp', fig_path = FALSE,
  reference = "surface", col_lim = c(12, 24)

these functions don't let you specify the type of color gradient used, so the second part of your request is not possible at this time.

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

2 participants