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

yxvsx plot a black screen when no text and box1.priority = 0 #706

Closed
williams13 opened this issue Sep 25, 2014 · 2 comments
Closed

yxvsx plot a black screen when no text and box1.priority = 0 #706

williams13 opened this issue Sep 25, 2014 · 2 comments
Assignees
Milestone

Comments

@williams13
Copy link
Contributor

yxvsx plots a black screen when no text is drawn on the screen and box.priority = 0. See script below:

import vcs, cdms2

# Open data file:
cdmsfile = cdms2.open( 'clt.nc' )

# Extract a 3 dimensional data set and get a subset of the time dimension
data = cdmsfile('v', plev1=(200.0), longitude=(-180, -180), latitude = (-90., 90.), squeeze=1)

# Initial VCS:
x = vcs.init()

# Assign the variable "cf_asd" to the persistent 'ASD' isofill graphics methods.
g = x.createyxvsx( 'UVWG1D', 'default' )

# Template that is a dud
t2=x.createtemplate('UVWG1D_DUD', 'UVWG')
t2.dataname.priority = 0
t2.xname.priority = 0
t2.yname.priority = 0
t2.zname.priority = 0
t2.tname.priority = 0
t2.comment1.priority = 0
t2.comment2.priority = 0
t2.comment3.priority = 0
t2.comment4.priority = 0
t2.source.priority = 0
t2.title.priority = 0
t2.units.priority = 0 
t2.mean.priority = 0
t2.min.priority = 0
t2.max.priority = 0
t2.xvalue.priority = 0
t2.yvalue.priority = 0
t2.xunits.priority = 0
t2.yunits.priority = 0
t2.zunits.priority = 0
t2.tunits.priority = 0

t2.box1.priority = 0 # toggle between 0 and 1 to see it work and not work. 

x.plot( data,  g, t2 ) 
# If box1. priority is 0 but you draw something it will work. (data, g, t2, souce=' ') works if box1.priority is 0
@doutriaux1
Copy link
Contributor

@williams13 not sure what's wrong here both caes work for me see attahced

Please re-open if still odes not work for you.
ok_0
ok_1

@williams13
Copy link
Contributor Author

Yes. It is working.
Thanks!

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Monday, November 10, 2014 4:33 PM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: Dean Williams <williams13@llnl.govmailto:williams13@llnl.gov>
Subject: Re: [uvcdat] yxvsx plot a black screen when no text and box1.priority = 0 (#706)

@williams13https://github.com/williams13 not sure what's wrong here both caes work for me see attahced

Please re-open if still odes not work for you.
[ok_0]https://cloud.githubusercontent.com/assets/2781425/4986413/61576ac6-693a-11e4-8e39-0e6fc2e0b332.png
[ok_1]https://cloud.githubusercontent.com/assets/2781425/4986412/61574546-693a-11e4-85d9-03221b7b33b9.png


Reply to this email directly or view it on GitHubhttps://github.com//issues/706#issuecomment-62482501.

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

No branches or pull requests

2 participants