Re: [Matplotlib-users] How do I set grid spacing?

2012-04-10 Thread Ben Harrison
On 11/04/12 07:34, Paul Hobson wrote: > Ben > Does "ax.set_xlim([0,50])" do what you want it to do? > > -paul hi paul, i finally worked it out, and should have replied to myself: ax.set_xticks(np.arange(0,100,20)) for me it seemed to work. ben. ---

[Matplotlib-users] How do I set grid spacing?

2012-04-03 Thread Ben Harrison
I create my figure in my (non-interactive) script like so: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(...) Then I want to set the spacing of y grid to 50 units (axis units). Do I need a method of the matplotlib.axis.Axis, or matplotlib.axes.Axes (or are

[Matplotlib-users] AssertionError error when writing to SVG with pyplot.savefig()

2012-03-18 Thread Ben Harrison
Hello, below I've included my script for plotting some data, and a small amount of the data itself. I plot the data to several different file types via pyplot.savefig(). For each of eps, pdf, and png, it works fine. With svg it throws this error, any ideas why?: harb@joan:~/Documents/DATA/Appl