-
Notifications
You must be signed in to change notification settings - Fork 68
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 labels #716
Comments
I have found that this also is the case for 1D plots as well. The VTK is not plotting annotations properly if at all. From: James McEnerney <notifications@github.commailto:notifications@github.com> When trying to put labels on a scatter plot with — |
@williams13 I think its is a bug in the vcs-vtk code and not in vtk. I have drawn annoations before without any issue. We will have a look. |
Thanks! The clear and close is a bigger issue for the diagnostics and the animation. From: Aashish Chaudhary <notifications@github.commailto:notifications@github.com> @williams13https://github.com/williams13 I think its is a bug in the vcs-vtk code and not in vtk. I have drawn annoations before without any issue. We will have a look. — |
Sure.for now marked it for 2.1 |
@mcenerney1 quick question, are "1"/"2" valid values for your range in x/y? remember these are "values" not "indices" |
oops and the code to go with it:
|
The axis tics and range are overwritten. From: Charles <notifications@github.commailto:notifications@github.com> oops and the code to go with it: import vcs,cdms2,sys,os x=vcs.init() — |
For all plots, I couldn't get the xmintic and ymintic to work, but didn't want to bring this up yet. I couldn't get the axis labels to plot either. I will need these before the mintics. From: James McEnerney <notifications@github.commailto:notifications@github.com> The axis tics and range are overwritten. From: Charles <notifications@github.commailto:notifications@github.commailto:notifications@github.com> oops and the code to go with it: import vcs,cdms2,sys,os x=vcs.init() — — |
we'll have to look into this because as showed on the pix above it seems to be working. can you provide an example? @mcenerney1 do a presentation.list() and send me the output, also please save the data being plotted to a netcdf file and send me this ok? thx |
The example above shows the issue, doesn't it? |
no it doesn't i tell it to draw labels "ONE" and "TWO" instead of 1,2 and nothing else, so it does exactly what is expected. |
How do you get the range on the axes? |
data.getAxis(-1)[:].min() |
.. and displayed on the graph. |
where some_dict is a dictionary containing ALL the values you want displayed with their corresponding string one way to generate this dictionary is to use:
|
Jim, if you do a: presentation.list() you will see the object's attributes and settings, like the template. From: Charles <notifications@github.commailto:notifications@github.com> presentation.datawc_x1=min where some_dict is a dictionary containing ALL the values you want displayed with their corresponding string one way to generate this dictionary is to use: In [4]: min =0 In [5]: max = 10 In [6]: vcs.mklabels(vcs.mkscale(min,max)) — |
I've been mistaken that displaying labels would preserve the axes. I'll give it a try. |
i think it was a @mcenerney1 user error. Closing |
When trying to put labels on a scatter plot with
presentation.xticlabels1 = {1:'20', 2: 'abc'}
presentation.yticlabels1 = {1:'40', 2: 'def'}
What happens is the xtics and ytics are trashed(blank).
The text was updated successfully, but these errors were encountered: