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
Scatter plot won't plot the scatters #724
Comments
@williams13 this works for me, what is the issue exactly?
|
Your picture has no scatter points. This is the issue. Replace in your code the sc=x.createscatter('default') with sc=x.getscatter('default') now you will see the scatter points and you will see the issue. That is, both should be using the same graphics method settings since they are both essentially the "default" scatter settings. Let me know what you get by using x.getscatter. With the x.getscatter command you will see the scatter points. For the diagnostics, I need to use create scatter and not get scatter. From: Charles <notifications@github.commailto:notifications@github.com> @williams13https://github.com/williams13 this works for me, what is the issue exactly?
— |
It does they are just small, makes a circle From: "Dean N. Williams" <notifications@github.commailto:notifications@github.com> Your picture has no scatter points. This is the issue. Replace in your code the sc=x.createscatter('default') with sc=x.getscatter('default') now you will see the scatter points and you will see the issue. That is, both should be using the same graphics method settings since they are both essentially the "default" scatter settings. Let me know what you get by using x.getscatter. With the x.getscatter command you will see the scatter points. For the diagnostics, I need to use create scatter and not get scatter. From: Charles <notifications@github.commailto:notifications@github.commailto:notifications@github.com> @williams13https://github.com/williams13 this works for me, what is the issue exactly?
— — |
Are the two plots identical? Attached is what I get from replacing the two commands. For Jim to get scatter to work he is using get scatter, but for diagnostics I need to create new scatters. Here's the test script: I am on a Mac 10.8.5, perhaps I don't have the latest version of the software. Do I need to merge a bug fix? Also maybe someone else can verify this. Shouldn't talk but a minute to confirm. From: Charles <notifications@github.commailto:notifications@github.com> It does they are just small, makes a circle From: "Dean N. Williams" <notifications@github.commailto:notifications@github.commailto:notifications@github.com> Your picture has no scatter points. This is the issue. Replace in your code the sc=x.createscatter('default') with sc=x.getscatter('default') now you will see the scatter points and you will see the issue. That is, both should be using the same graphics method settings since they are both essentially the "default" scatter settings. Let me know what you get by using x.getscatter. With the x.getscatter command you will see the scatter points. For the diagnostics, I need to use create scatter and not get scatter. From: Charles <notifications@github.commailto:notifications@github.commailto:notifications@github.commailto:notifications@github.com> @williams13https://github.com/williams13 this works for me, what is the issue exactly?
— — — |
Dean, using getscatter this is what I get,which is wrong since points are now connected, I'll fix first thing in the morning. Use createscatter and you probably want to increase the points size. I now what's wrong with the default "scatter" (linewidtrh=1 where it should be 0)
|
@williams13 forgot to tag you in previous comment, doing it now to be sure you see tihs. |
Thanks Charles! Let me know when it is in master. I am working on the scatter template now and also on the vector template for the diagnostics. From: Charles <notifications@github.commailto:notifications@github.com> @williams13https://github.com/williams13 forgot to tag you in previous comment, doing it now to be sure you see tihs. — |
For the diagnostics plot set 11 and 12, the scatter plot is to be used. If you use the x.getscatter('default') the scatters are plotted. If you use the x.createscatter('new', 'default'), then the scatters are not plotted. See script below:
import vcs, cdms2
x=vcs.init()
f=cdms2.open('clt.nc')
u=f('u')
v=f('v')
g=x.createscatter('new', 'default') # g=x.getscatter('default') --> this works if you use getscatter
g=x.getscatter('default')
x.plot(u,v,g)
raw_input('Done')
The text was updated successfully, but these errors were encountered: