-
Notifications
You must be signed in to change notification settings - Fork 13
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
[WIP] Log axes 2d #316
[WIP] Log axes 2d #316
Conversation
@danlipsa @scottwittenburg I would like to merge this shortly in master, can you review please, it supersedes #315 |
Whew, huge change! I mostly skimmed the parts I wasn't familiar with, but no potential issues popped out at me. +1 |
@danlipsa actually I did not do the vector or streamline graphic method. I don't quite follow the logic on how to propagate the axes to the vector arrays. I'll double check streamlines, I think I just forgot about them but if they store their own vtk copy of the data then i think it will be up to you again. |
@danlipsa might be worth merging this in first and then fix vector/streamlines separately in another PR. |
axisConvertFunctions = { | ||
"linear": {"forward": lambda x: x, "invert": lambda x: x}, | ||
"area_wt": {"forward": lambda x: numpy.sin(x / 180. * numpy.pi), | ||
"invert": lambda x: numpy.arcsin(x) / numpy.pi * 180.}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is area_wt?
@doutriaux1 Should be the same as the rest of the 2D plots, isn't it? |
Looks good to me. Nice work. |
Sure we can merge this and do the vectors and streamlines in a different PR. |
@danlipsa make sure you review this first though, there's a lot going on here. |
@danlipsa when I apply to vectors (area_wt on y axis) I get tiny arrows. |
@doutriaux1 I have a question on axisconvert: What is the purpose of area_wt. What does wt stand for? |
@doutriaux1 @aashish24 @scottwittenburg You have 'xyscale' for both axes but 'xaxisconvert' and 'yaxisconvert' for individual axes. It would be nice to make them consistent. |
We could change only xaxisconvert and yaxisconvert to xscale and yscale |
@danlipsa |
@danlipsa where do you see |
I don't. These are the suggested new names for xaxisconvert and yaxisconvert so that they are consistent with xyscale. |
@danlipsa ok, I guess I'm wondering where do we use |
That's a minor issue. Grepping for xscale I can see we use that with a different meaning. Maybe: |
@danlipsa I see it now, there's indeed an |
needs: #315