-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extra options for poloidal plots #71
Conversation
Also specify in docstring what happens if a dict is passed.
'norm' option allows any matplotlib.colors.Normalize instance to be passed, for general control of the color-scale. For convenience, also adds a 'logscale' option which can be set to True to create a standard log-scale if vmin and vmax are both positive or both negative, and a symmetric log-scale with a linear threshold of min(abs(vmin),abs(vmax))*1.e-5 if vmin and vmax have opposite signs. If a float is passed for 'logscale' and vmin and vmax have opposite signs then the value of 'logscale' is used instead of the default 1.e-5 to set the linear threshold.
Hello @johnomotani! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-12-10 19:39:19 UTC |
sorry, gridlines doesn't work at the moment. will debug after the meeting |
When setting torodial coordinates, a 'psi_poloidal' coordinate is added, but the x-dimension is not renamed (as psixy is a 2d array, although its values only vary in x). Therefore 'bout_xdim' should be 'x' (the name of the dimension), not 'psi_poloidal'.
7fa6411
to
0f4f7b5
Compare
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
==========================================
- Coverage 45.15% 43.73% -1.43%
==========================================
Files 8 8
Lines 795 862 +67
Branches 152 177 +25
==========================================
+ Hits 359 377 +18
- Misses 380 429 +49
Partials 56 56
Continue to review full report at Codecov.
|
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.
Added one small unimportant comment, otherwise looks good
xbout/plotting/plotfuncs.py
Outdated
# Small regions around X-point do not have segments in x- or y-directions, | ||
# so skip | ||
continue | ||
if 'x' in gridlines and gridlines['x'] is not None: |
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.
You can just do if gridlines.get('x'):
if you want, the default return value of .get()
if the key isn't found is None
.
Extra options for poloidal plots
Split out 2d-plot changes from #38.