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

boxfill draws outside range #620

Closed
doutriaux1 opened this issue Sep 9, 2014 · 8 comments
Closed

boxfill draws outside range #620

doutriaux1 opened this issue Sep 9, 2014 · 8 comments
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

@doutriaux1 doutriaux1 commented Sep 9, 2014

when setting boxfill level_1 and level_2 data outside this range should not be drawn, @aashish24 I guess I should use the threshold filter here, right?

@doutriaux1 doutriaux1 self-assigned this Sep 9, 2014
@doutriaux1 doutriaux1 added this to the 2.0.0 milestone Sep 9, 2014
@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Sep 9, 2014

Yes, vtkThresholdFilter is the way to go

@doutriaux1
Copy link
Contributor Author

@doutriaux1 doutriaux1 commented Sep 9, 2014

fixed in issue_620_boxfill_level_1_level_2
@aashish24 please review and merge

@doutriaux1
Copy link
Contributor Author

@doutriaux1 doutriaux1 commented Sep 9, 2014

ok don't review just yet ;) ctest is bad

@doutriaux1
Copy link
Contributor Author

@doutriaux1 doutriaux1 commented Sep 9, 2014

ok it's good to go!

@doutriaux1
Copy link
Contributor Author

@doutriaux1 doutriaux1 commented Sep 9, 2014

@aashish24 yep good to go

@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Sep 10, 2014

Looking into it..

@aashish24
Copy link
Contributor

@aashish24 aashish24 commented Sep 10, 2014

what is level 1 and level 2 means? Is this the elevation?

@williams13
Copy link
Contributor

@williams13 williams13 commented Sep 10, 2014

The levels represent the minimum level range (level_1) and the maximum level range (level_2). For example, if you have a variable that has a minimum value of 0 and a maximum value of 100. You can use the default setting by setting level_1 = 1e20 and level_2 = 1e20. If you want to set the values by hand you can for example set level_1 = 20 (for the minimum value) and level_2 = 80 for the maximum value.

You can also set the specific levels by levels = (0, 20, 35, 40, 75, 100)

Example code:

a=x.getboxfill('default')

a.level_1=1e20
a.level_2=1e20

a.level_1=30
a.level_2=70

a.levels=(0,20,35,40,75,100) # Set the custom ranges
a.fillareacolors=(16,25,38,55,100,166) # Set the color indices

Let me know if this isn't clear.

From: Aashish Chaudhary <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Tuesday, September 9, 2014 5:33 PM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Subject: Re: [uvcdat] boxfill draws outside range (#620)

what is level 1 and level 2 means? Is this the elevation?


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

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

Successfully merging a pull request may close this issue.

None yet
3 participants