Re: [Matplotlib-users] hexbin difference map

2012-05-18 Thread Erik Tollerud
_hex are the binned counts. > > (4) Any simple way to get around this, to plot the hexbin difference counts > on top of the theĀ  hexbin (c_b211_jmk,c_b211_k) distribution? > > thanks in advance & with best regards, > - Sebastian -- Erik Tollerud

Re: [Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
possible to use the z-order mechanism to get around this? (e.g. individually set the z-order of scatter points and the patches in the surface so that at least very roughly the correct pieces are rendered in front?) On Mon, Oct 4, 2010 at 1:04 PM, Benjamin Root wrote: > On Mon, Oct 4, 2010 at

[Matplotlib-users] 3D surfaces and scatter plots have weird alpha behavior?

2010-10-04 Thread Erik Tollerud
urface) to transparent. An example is attached, with renderings of the two states in the URLs below. Is this a bug, or am I doing something wrong? http://dl.dropbox.com/u/8683962/mpl3dalpha-1.png http://dl.dropbox.com/u/8683962/mpl3dalpha-2.png -- Erik Tollerud #!/usr/bin/env python from nu

[Matplotlib-users] subplot2grid weird for non-square shapes

2010-08-27 Thread Erik Tollerud
pan=1) ax4=plt.subplot2grid((2,6),(1,4),rowspan=2,colspan=1) But instead, apparently random partterns of axes appear and some to override each other so that only one subplot is present in the end... what's going on here? --

[Matplotlib-users] Pydot graphs in matplotlib?

2010-02-15 Thread Erik Tollerud
I'm curious if anyone knows a good way to embed pydot (http://code.google.com/p/pydot/) graphs (or really, any graphviz-style graphs) inside matplotlib somehow. I could easily write out a png or something from pydot and then imshow it, but that seems very kludgy. Is there some way to load svg or

Re: [Matplotlib-users] mplot3d scatter3d marker sizes?

2010-01-19 Thread Erik Tollerud
less convinient) On Mon, Jan 18, 2010 at 11:49 PM, Matthias Michler wrote: > Hi Erik, > > with current svn I see markers of different size. What version of matplotlib > you are using? > > Kind regards, > Matthias > > On Monday 18 January 2010 21:38:25 Erik Tollerud

[Matplotlib-users] mplot3d scatter3d marker sizes?

2010-01-18 Thread Erik Tollerud
Is there a way to change the sizes of scatter plot markers for mplot3d.Axes3D.scatter3d ? I do from mpl_toolkits.mplot3d import Axes3D ax = Axes3D(gcf()) x,y,z = randn(3,20) ax.scatter(x,y,z,s=30*rand(20)) and I expect to see 20 points of a range of sizes from 1 to 30... but instead I see them a

Re: [Matplotlib-users] problem with import pylab

2010-01-17 Thread Erik Tollerud
Just based on the traceback, the problem seems to be in Tk - does anything in tk work for you? (e.g. any of the builtin python gui stuff) You might try installing wx and changing your matplotlibrc file to have the line "backend:WxAgg" in it. I've never tried using the wx backend on windows (anyon

Re: [Matplotlib-users] Continuously varying line colors?

2009-05-07 Thread Erik Tollerud
Ah, I see... well, that's doable although not necessarily ideal. Thanks to you both! On Mon, May 4, 2009 at 10:24 AM, Ryan May wrote: > On Mon, May 4, 2009 at 2:22 AM, Erik Tollerud > wrote: >> >> I'm hoping to generate a line plot where the color of each pixe

[Matplotlib-users] Continuously varying line colors?

2009-05-04 Thread Erik Tollerud
I'm hoping to generate a line plot where the color of each pixel on the plot is given by linearly interpolating the colormap from each point specified in the line, instead of having the whole line be a solid color. I can "mock this up" by doing a scatter plot where the points are much closer toget

[Matplotlib-users] Labels cut off with log axes

2008-11-13 Thread Erik Tollerud
size I need for my figures. Is there an obvious work-around to fix this, or does some of the labelling code need to be changed? Note that this problem is much exacerbated if I use larger font sizes or smaller figures... -- Erik Tollerud Graduate Student Center For Cosmology Department of Physic

[Matplotlib-users] Square Axes

2008-09-17 Thread Erik Tollerud
I would like to ensure that the axes on a plot I'm making are square in the sense of how the axes appear in the figure. I tried using ax.set_aspect(1) , but that squares the axes in data coordinates, rather than in figure coordinates. So aside from generating a figure that is always square (which

Re: [Matplotlib-users] imshow and projections

2008-09-09 Thread Erik Tollerud
with a MemoryError after running for ~5 minutes. On Fri, Sep 5, 2008 at 6:00 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Erik Tollerud wrote: >> >> I've been playing with some of the projections in matplotlib, >> recently, and have some questions/noticed som

[Matplotlib-users] imshow and projections

2008-09-04 Thread Erik Tollerud
I've been playing with some of the projections in matplotlib, recently, and have some questions/noticed some odd behavior: 1. Is there any way to activate a projection mode with the pyplot interface other than the subplot(111,projection='whatever') method a la /examples/api/custom_projection_examp

Re: [Matplotlib-users] Font weight on axes/labels

2008-06-23 Thread Erik Tollerud
On Mon, Jun 23, 2008 at 5:21 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > On Sunday 22 June 2008 21:49:03 Erik Tollerud wrote: >> I'm trying to adjust the font weight on some of my plots - I'd like to >> have the numbers along the axis ticks be bold instead of regular fo

[Matplotlib-users] Font weight on axes/labels

2008-06-22 Thread Erik Tollerud
I'm trying to adjust the font weight on some of my plots - I'd like to have the numbers along the axis ticks be bold instead of regular font like the default setting. The problem is, nothing I do seems to change the font weight. I've changed everything I can font in matplotlibrc to bold, and when

Re: [Matplotlib-users] Controlling math mode font weights

2008-06-02 Thread Erik Tollerud
e completely > independent systems, and you can only use either one of the other. > Therefore, if usetex is True, none of the mathtext settings will have any > effect. > > Erik Tollerud wrote: >> >> I am having trouble figuring out how to control the weight of labels &g

[Matplotlib-users] Controlling math mode font weights

2008-06-01 Thread Erik Tollerud
I am having trouble figuring out how to control the weight of labels and text with the usetex option set to True. I would like to force all mathmode labels and text to be at least bold. I can imagine doing this either by substituting a font (i.e. changing the mathtext.fontset to 'custom' and all

[Matplotlib-users] Nonlinear twin axis

2008-04-02 Thread Erik Tollerud
I'm trying to make a plot that has two x-axis with one of them nonlinear - twiny() is working great, but I'm hung up on how to get the second axis to be spaced properly. For the sake of example, lets say the first axis is linear on [1,2] - if I just plot data according to that x-axis, all is fine.

[Matplotlib-users] Scatter legend doesn't show markers

2008-02-22 Thread Erik Tollerud
I use the scatter(x,y) command to make scatter plots, but I noticed today (on the SVN version of mpl) that when I call legend() after giving scatter(x,y,label='somelabel') , the legend doesn't show the marker symbols - it only has a square patch colored in the color that was used for the scatter p