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

Figure out why diff plots are running so slowly #44

Closed
pinarda opened this issue Jun 22, 2020 · 1 comment
Closed

Figure out why diff plots are running so slowly #44

pinarda opened this issue Jun 22, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@pinarda
Copy link
Collaborator

pinarda commented Jun 22, 2020

Get a python profiler running to check this

@pinarda pinarda added the bug Something isn't working label Jun 22, 2020
@pinarda pinarda added this to the Release 1 milestone Jun 22, 2020
@pinarda
Copy link
Collaborator Author

pinarda commented Jul 9, 2020

cProfile.run("ldcpy.plot(ds, 'TS', c0='orig', c1='zfpA1.0', metric='std', metric_type='diff')")

relevant output:

234978889 function calls (234151941 primitive calls) in 197.699 seconds

Ordered by: standard name

ncalls tottime percall cumtime percall filename:lineno(function)
.....
1 0.000 0.000 195.859 195.859 geoaxes.py:1487(contourf)
.....

SciTools/cartopy#1291

This appears to be an issue with resizing the scale limits inside contourf. This makes sense, because the only difference between the contourf calls in a regular spatial plot and the diff spatial plot is that most of the values are near to zero in a diff plot. The simplest solution, suggested elsewhere online (https://groups.google.com/forum/#!topic/scitools-iris/kuO2cnafrF0), is simply to use pcolormesh instead (issue #53).

@pinarda pinarda closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant