Tag Archive


aaomega anglo-australian telescope awk bash b[e] supergiant c-shell conference convert csh exoplanet fedora figaro fits fun galaxy header history iraf jupiter kepler latex linux magellanic clouds massive star matplotlib meteor moon mypaper numpy ondrejov observatory paper peblo photometry planet pyraf python scisoft skinakas observatory spectroscopy starlink talk theli ubuntu video wavelength

Installing matplotlib through pip but no plot displayed

The easiest way to install any Python package is through PyPI. So, matplotlib is not an exception and we installed it on a CentOS (v6.4) machine without any errors (of course after updating numpy). But when we tried to plot something we couldn’t see anything. This is actually a backend issue, and when we installed […]

MNRAS and eps font type

I was ready to submit my revised version at the MNRAS site, when I encountered some difficulties that I didn’t expected (although I knew that there would be some!). So, you have to upload a complete file of your paper (either pdf or ps) along with the source files (images, tex files, etc). At my […]

matplotlib: missed errorbars in logarithmic plot

While manipulating some data I came across to, what looked, a strange behavior with the errorbar of matplotlib, when plotting the results from linear to logarithmic scale. Suppose these data: import matplotlib.pyplot as plt import numpy as np s=[19.0, 20.0, 21.0, 22.0, 24.0] v=[36.5, 66.814250000000001, 130.17750000000001, 498.57466666666664, 19.41] verr=[0.28999999999999998, 80.075044597909169, 71.322124839818571, 650.11015891565125, 0.02] plt.errorbar(s,v,yerr=verr) plt.show() […]

Note on how to make multiple plots with pylab

iPython is a great tool to work with Python interactively, imitating a MatLab environment especially when running with matplotlib and numpy [the pylab module, all can be automatically imported by starting pylab like: ipython –pylab]. So you can use it to load data and start playing around with them. Although I like to script more […]

matplotlib’s pie colors or why pie diagrams suck!

While asking around for the best solution in how to determine the colors inside the matplotlib’s pie function I found out that the best solution is just … not to use them at all! (At least if they are not more than a couple of objects!) Well, the problem starts from the fact that when […]

Installing matplotlib-1.1.0 in Ubuntu 10.10 (64bit)

Ubuntu 10.10 includes matplotlib-0.99 in their repositories, which is not the latest one, so you don’t get the latest cool features (like gridspec)! But as I need some of its features I decided to go on and install the latest version matplotlib-1.1.0, only 20 days after its launch ! First of all it cannot be […]

matplotlib within Scisoft and file system – Fedora case

While I was working on a script to make multiple plots with matplotlib I found out that it was not possible with the version that Scisoft 7.5 uses (0.99) but a later version can do it (1.0.1)! So a logical though was to go on and upgrade the matplotlib inside scisoft but was not really […]

Reverse axis in matplotlib’s plot

Ok, maybe this post is not that important but it is one of the things that, although they seem so simple, you struggle to find the answer. After having downloaded matplotlib (a powerful library for 2D plots) my first plot through python was a success. But since I was plotting magnitudes I wanted the axis […]