Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

fix the SuperDARN_Data_plotting.ipynb #262

Merged

Conversation

MuhammadVT
Copy link
Contributor

This pull request fixes SuperDARN Data Plotting.ipynb

To text this pull request, run SuperDARN Data Plotting.ipynb with the current develop branch and after installing this pull request.

The convection plot in the last part of the notebook may not work as mention in #233 due to the bug in matplotlib/matplotlib#6270, which is reported by @w2naf . The is fixed in
matplotlib/matplotlib#6425, however, the bugfix has not been merged into the current matplotlib master branch. If you want to get the convection mat plot work you may do the following:

git clone git@github.com:matplotlib/matplotlib.git
cd matplotlib
git fetch
git checkout -b v1.5.x origin/v1.5.x
sudo pip install -e .

Just in case if the figure does not show up in the ipython console, then you may check ....../matplotlib/lib/matplotlib/mpl-data and change backend : %(backend)s into
backend : Qt4Agg

@MuhammadVT
Copy link
Contributor Author

Just a reminder, before you run "sudo pip install -e ." you need to "cd matplotlib"

@asreimer
Copy link
Contributor

This pull request does not modify plot_rti to address the "returning of multiple figure objects when multiple frequency bands are supplied" part of issue #233. That will still have to be fixed in a subsequent pull request.

@asreimer
Copy link
Contributor

Hi @MuhammadVT

Is the matplotlib pull needed just to fix contour plotting in the convection maps? Just trying to clarify what I should expect in testing this.

@MuhammadVT
Copy link
Contributor Author

Hi @asreimer ,

Yes, you need to have the v1.5.x branch of matplotlib installed to fix contour plotting.

@ksterne
Copy link
Contributor

ksterne commented Jul 11, 2016

Good to see this notebook getting worked on! I was just showing it to someone the other day....or at least trying to. Are we going to have to make more changes to this notebook once #233 is fixed?

Also, should we be making this fix until things are fixed in with matplotlib/matplotlib#6425? For now it's a bit awkward that if someone asks us why something doesn't work that we have to have them do something that should be included in the debian_dependencies.sh script and/or accepted in the matplotlib repo. This only relates to the very last line in the notebook as @asreimer is noting.

I think it's worth a wait on the matplotlib pull request.

@MuhammadVT
Copy link
Contributor Author

New release of matplotlib with the bugfix included has been released.
https://github.com/matplotlib/matplotlib/releases

@ksterne, would you mind testing this notebook with the new version of matplotlib installed.

@ksterne
Copy link
Contributor

ksterne commented Aug 17, 2016

@MuhammadVT,

Are the issues with matplotlib fixed with #245 ?

@asreimer
Copy link
Contributor

Just a note that pip install --upgrade matplotlib currently only installs matplotlib 1.5.1, NOT 1.5.2. despite 1.5.2 being officially shipped on July 3rd. I've asked about if/when 1.5.2 will be available in pip.

So, to answer your question @ksterne, no, the current dependency scripts WILL NOT resolve the issue (which is annoying...).

@asreimer
Copy link
Contributor

Tested this pull request. First this is what I did to get matplotlib 1.5.2 installed (release created on github, but they haven't included in pip yet):

git clone https://github.com/matplotlib/matplotlib.git
cd matplotlib
git checkout v1.5.2
sudo python setup.py install

This is how I recommend we install matplotlib 1.5.2. It could be added the scripts in #245 to replace the pip installation until such a time as 1.5.2 is available in pip.

Not sure why @MuhammadVT used pip install -e. Could you explain?

Otherwise, this pull request resolves the issue, although I'm not sure what was changed in the data analysis notebook since the "bugfix" is to update matplotlib.

@asreimer
Copy link
Contributor

asreimer commented Aug 18, 2016

Let's wait a few days though, I think 1.5.2 will be in pip in the next day or two.

See: matplotlib/matplotlib#6473 (comment)

@asreimer
Copy link
Contributor

Alright, matplotlib 1.5.2 is now installable via pip. This means that rerunning the dependency installation script will resolve this bug and anyone installing davitpy from now on won't encounter this problem.

Testing this pull request I find that it resolves the issues that we had with the Data Plotting notebook.

Merging.

@asreimer asreimer merged commit a4ccaab into vtsuperdarn:develop Aug 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants