<div dir="ltr">I can reproduce your issue with matplotlib 2 beta1 but not with 1.51, See <a href="https://gist.github.com/jenshnielsen/86d4a86d8f667fadddc09f88c5fb87e6" target="_blank">https://gist.github.com/jenshnielsen/86d4a86d8f667fadddc09f88c5fb87e6</a> I think this relates to the dtype of the data (see the last two cells of my notebook) can you open an issue for this at github? It seems like the fits data is converted from float32 to big endian float8.<div><br></div><div>best</div><div>Jens</div><br><div class="gmail_quote"><div dir="ltr">On Fri, 1 Jul 2016 at 15:23 anikhalder <<a href="mailto:a.halder@jacobs-university.de" target="_blank">a.halder@jacobs-university.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I am facing a problem while running a script ( please find the attached<br>
files - I am attaching both the ipython notebook version and also the python<br>
script ).<br>
<br>
I am trying to plot an array of values, write it into a FITS file format,<br>
read it back again and plot it ---> I don't get the same plots!<br>
<br>
I shall be highly obliged if you can kindly help me with this.<br>
<br>
The following are the versions of my packages and compiler:<br>
<br>
matplotlib : '2.0.0b1'<br>
<br>
numpy : '1.11.0'<br>
<br>
astropy : u'1.1.2'<br>
<br>
python : 2.7<br>
<br>
Sincerely,<br>
Anik Halder<br>
<br>
problem_fits_file.ipynb<br>
<<a href="http://matplotlib.1069221.n5.nabble.com/file/n47271/problem_fits_file.ipynb" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/file/n47271/problem_fits_file.ipynb</a>><br>
problem_fits_file.py<br>
<<a href="http://matplotlib.1069221.n5.nabble.com/file/n47271/problem_fits_file.py" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/file/n47271/problem_fits_file.py</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/IPython-FITS-file-plotting-problem-tp47271.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/IPython-FITS-file-plotting-problem-tp47271.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div></div>