Skip to content

Issue 298 markers default size#300

Merged
danlipsa merged 10 commits intomasterfrom
issue_298_markers_default_size
Jan 24, 2018
Merged

Issue 298 markers default size#300
danlipsa merged 10 commits intomasterfrom
issue_298_markers_default_size

Conversation

@doutriaux1
Copy link
Copy Markdown
Contributor

@danlipsa @aashish24 please review. Blines at: CDAT/uvcdat-testdata#184

Thre goal of this PR is to make all markers have similar size for a given value of the marker size, no matter what the marker type is (at the present the hurrican was way bigger)
NOTE: there is an issue with cross and plus markers they do not scale properly. I got them t be all roughly of the same size for a marker size of 1. But when changing to size 5 or 10 all markers scale similarly exceot for plus and cross. The SetScale option on the vtkGlyphSource2D object seems to behave differently for the "Cross" glyph type. At @aashish24 I played with SetScale2 but to no luck so far.

Most striking example can be seen at:
https://github.com/UV-CDAT/uvcdat-testdata/pull/184/files#diff-e2de5072ad476a7a887c81f48602561b
or
https://github.com/UV-CDAT/uvcdat-testdata/pull/184/files#diff-4bc0717af7c272ffff5c6fbc4eacaa35

@danlipsa
Copy link
Copy Markdown
Contributor

@doutriaux1 @aashish24 Take a look my commit. Seems that the special scaling was caused by code in vcs. I uploaded new baselines that look right.

@doutriaux1
Copy link
Copy Markdown
Contributor Author

@danlipsa it was here on purpose, otherwise for size one they're ridiculously small. try different size like 20 next, you'll see it does not seem to scale properly.

line.marker = "circle" #
line.markersize = 10 # A bit bigger
line.markersize = 1
s = MV2.array(s)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is markersize 1 the default?

m.color = [242, ]
m.size = [10., ]
m.size = [20., ]
xs = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why isn't this one set to 1 as well and change everything else proportionally?

@danlipsa
Copy link
Copy Markdown
Contributor

test_vcs_markers_uniform_2
@doutriaux1 Here are the images for 5 and 10. They seem to be OK.
test_vcs_markers_uniform_2

@doutriaux1
Copy link
Copy Markdown
Contributor Author

@danlipsa I don't know why it wasn't working for me! w/o *=10 it was the tiniest markers ever... If you're happy with the PR as is please merge in

@danlipsa
Copy link
Copy Markdown
Contributor

Sounds good.

@danlipsa danlipsa merged commit d67c83a into master Jan 24, 2018
@danlipsa danlipsa deleted the issue_298_markers_default_size branch January 24, 2018 14:53
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

Successfully merging this pull request may close these issues.

2 participants