Use the legend method of your axes object:
http://matplotlib.sourceforge.net/examples/api/legend_demo.html?highlight=codex%20legend
On Tue, Oct 19, 2010 at 11:15 AM, Waléria Antunes David
wrote:
> Hi,
>
> This example helped me. I have another question. How do I insert the label
> as in the examp
Hi,
This example helped me. I have another question. How do I insert the label
as in the example image?: Data from Riess et al (2004)
Thanks,
Waleria.
On Tue, Oct 19, 2010 at 3:50 PM, Paul Hobson wrote:
> Waléria,
>
> Hopefully this example helps:
>
> # code...
> import matplotlib.pyplot as pl
2010/10/19 Waléria Antunes David :
> Example: In my graph, the x-axis this way: 0.0 - 0.2 -- 0.4 -
> 0.6 --- 0.8 --- 1.0 --- 1.2 1.4
> I need this way: 0 - 0.5 -- 1.0 - 1.5 2
you might use mpl.ticker.MaxNLocator(4).
Install it in the Axes usin