<div dir="ltr"><span style="font-size:13px">Sure. The bug report is up at at </span><a href="https://github.com/matplotlib/matplotlib/issues/6671" style="font-size:13px">https://github.com/matplotlib/matplotlib/issues/6671</a><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">In the mean time you can either switch to 1.5.x or change the code to</div><div style="font-size:13px"><br></div><div>plt.imshow(Z_read.astype('<f8'), origin = "lower")<br></div><div><br></div><div style="font-size:13px">best</div><div style="font-size:13px">Jens</div><div style="font-size:13px"><br></div><div class="gmail_quote"><div dir="ltr">On Fri, 1 Jul 2016 at 16:49 Halder, Anik <<a href="mailto:a.halder@jacobs-university.de">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">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Jens,<br>
<br>
Thank you so very much for your help. <br>
<br>
Unfortunately I'm really am not too familiar with github. Will it be possible for you to open a discussion there and send me the link?<br>
<br>
Will be very obliged if you could do so.<br>
<br>
Thank you once again,<br>
<br>
Anik <br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Jens Nielsen [<a href="mailto:jenshnielsen@gmail.com" target="_blank">jenshnielsen@gmail.com</a>]<br>
<b>Sent:</b> Friday, July 01, 2016 5:21 PM<br>
<b>To:</b> Halder, Anik; <a href="mailto:matplotlib-users@python.org" target="_blank">matplotlib-users@python.org</a><br>
<b>Subject:</b> Re: [Matplotlib-users] IPython FITS file plotting problem<br>
</font><br>
</div></div></div></div><div><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div></div>
<div>
<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>
</div>
</div></div></div></blockquote></div></div>