oliver marks wrote: > hi, > > I have successfully written my first test program in matlab, it works > perfectly except the display is not quite right, to the left and write > of the plotted data there are blank areas with nothing on, how can i get > rid of these a link to the image is attached, and the code is below. >
I don't think it's anything you're doing wrong, it's just that matplotlib leaves some space by default. What you want it the pylab.subplots_adjust function: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.subplots_adjust You might want to try something like (the numbers are in normalized figure coordinates, such that 0 is very left/bottom and 1.0 is the very right/top): pylab.subplots_adjust(left=0.05, right=0.95) Putting this right after your call to pylab.figure() works for me. You can override the default in you matplotlibrc file as well, if you wish. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users