[Matplotlib-users] Define linewidth in data units

2011-08-22 Thread Jakob Gager
Hi, is there a way to define the line width in data units, i.e. no in screen based but in data coordinate system based units? This way the line thickness would scale during zooming (which is intended!). This way parallel areas would be much easier to plot. If this is not possible has anyone

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-22 Thread Jeff Klukas
On Sun, Aug 21, 2011 at 1:01 PM, Jouni K. Seppänen j...@iki.fi wrote: Jeff Klukas klu...@wisc.edu writes:   File /Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/matplotlib/dviread.py, line 727, in _register     assert encoding is None AssertionError This

Re: [Matplotlib-users] Define minimum precision for tick labels

2011-08-22 Thread Stan West
From: André Dankert [mailto:andre.dank...@googlemail.com] Sent: Friday, August 19, 2011 04:12 I have a minor style problem, but, nevertheless, I can't solve it with googles help. I want to have a minimum precision displayed on my ticks, i.e. if the ticks are -1,-0.5,0,0.5,1 it should be

[Matplotlib-users] [Basemap] Using a geotiff from seamless.usgs.gov as a background

2011-08-22 Thread Albert Kottke
As the subject states, I am trying to use a geotiff (shaded relief) that I have downloaded from seamless.usgs.gov as the background in a map. Mostly I am just confused about the seamless image projection and bounds. The metadata defines the latitude of the top and bottom, and longitude of the left

Re: [Matplotlib-users] Symmetrical Log Scale on Axis

2011-08-22 Thread Michael Droettboom
You want to call set_yscale('symlog') on the axes. Mike On 08/19/2011 01:07 PM, Jonny Milliken wrote: Hi, I am having some trouble establishing how to use matplotlib.scale.SymmetricalLogScale() to draw a log scale on the positive and negative axis of a plot. Assuming of course that is the

Re: [Matplotlib-users] ImageGrid, force grid boxes to be same size

2011-08-22 Thread Jae-Joon Lee
If you don't care about the aspect ratio at all, you can use aspect=auto. Check the thread below. http://old.nabble.com/Re%3A-Can-I-change-pixel-aspect-with-axes_grid-p32300471.html Regards, -JJ On Sat, Aug 13, 2011 at 5:01 AM, R. O'Gara ronog...@yahoo.com wrote: Hi, From the attached

Re: [Matplotlib-users] contour's clabels overlap each other in an ImageGrid

2011-08-22 Thread Jae-Joon Lee
Can you post an simple self-contained script that reproduces your problem? I just tried something similar but could not reproduces your problem. Here is what I did, Also, what version of matplotlb are you using? Regards, -JJ import matplotlib.pyplot as plt import numpy as np from

Re: [Matplotlib-users] Gridspec and shared y-axis label

2011-08-22 Thread Jae-Joon Lee
On Thu, Aug 18, 2011 at 5:53 PM, mogliii mogl...@gmx.net wrote: 2) I want to make a shared y-axis label. I found this page: http://www.scipy.org/Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label But any additional axis I put before the gridspec axis is not shown in the end. Is there a

Re: [Matplotlib-users] adding custom legends to multicolored line

2011-08-22 Thread Jae-Joon Lee
You may use a proxy artist. http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist for example, from matplotlib.lines import Line2D l1 = Line2D([], [], linewidth=3, color=r) l2 = Line2D([], [], linewidth=3, color=g) l3 = Line2D([], [], linewidth=3, color=b) legend([l1,