Re: [Matplotlib-users] Two circles with “exponential decay” coloring, and alpha < 1, having trouble with color mixing?

2015-11-23 Thread Sterling Smith
Maybe the issue is with the colormap not having an alpha? Does this http://stackoverflow.com/questions/10127284/overlay-imshow-plots-in-matplotlib help? Otherwise, you might file a bug at https://github.com/matplotlib/matplotlib/issues/new -Sterling On Nov 20, 2015, at 4:46PM, Brian Merchant

Re: [Matplotlib-users] bug report

2015-09-16 Thread Sterling Smith
Works fine for {{{ : python Python 2.7.10 (default, Sep 15 2015, 11:26:42) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. /Users/smithsp/.pyhistory >>> import matplotlib >>> matplotlib.__version__ '1.4.3'

Re: [Matplotlib-users] Shadows are really large in exported PNG file

2015-09-03 Thread Sterling Smith
For those who wonder what he means: on the left is TkAgg; on the right is png. -Sterling On Sep 3, 2015, at 1:13PM, Richard Stanton wrote: > A quick follow-up: if I export to a jpg file, I get the same huge shadow. If > I export to a PDF file, the shadow looks

Re: [Matplotlib-users] background color of text plots as foreground

2015-07-09 Thread Sterling Smith
Works for me with TkAgg backend on 1.4.3. -Sterling On Jul 9, 2015, at 3:52AM, Mark Bakker mark...@gmail.com wrote: Hello list, I am trying to set the backgroundcolor of a textbox: from pylab import * plot([1, 2, 3]) text(1, 2, 'Hello', backgroundcolor = 'red') This plots a nice red

Re: [Matplotlib-users] How to visualize a, b results of x, y variables

2015-07-08 Thread Sterling Smith
In the x,y plane, could you overlay contours of a with contours of b? -Sterling On Jul 8, 2015, at 8:19PM, Jonno jonnojohn...@gmail.com wrote: I have a bunch of experimental data points each of which has 2 variables (x,y) and 2 results (a,b). Each pair or x,y values produces a pair of a,b

[Matplotlib-users] Use _cntr.so in fortran?

2015-06-25 Thread Sterling Smith
The contour finder in matplotlib is more robust than I currently have in a legacy fortran project. I would like to link to matplotlib’s instead. Has anyone done this before? Are there any suggestions or pitfalls for proceeding? Thanks, Sterling

Re: [Matplotlib-users] common text label on legend?

2015-06-10 Thread Sterling Smith
Neal, legend[1] has the title keyword legend(loc=‘best’,title=‘foo’) -Sterling [1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend On Jun 10, 2015, at 11:36AM, Neal Becker ndbeck...@gmail.com wrote: Is there some way I can add a short text to the legend box? Rather than

Re: [Matplotlib-users] common text label on legend?

2015-06-10 Thread Sterling Smith
Neal, If you also want to get rid of the lines, you could just color the texts of the legend labels using a VPacker in something like http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777 -Sterling On Jun 10, 2015, at 10:25PM, Sterling Smith smit

Re: [Matplotlib-users] Turning grid on

2015-06-01 Thread Sterling Smith
Stephen, In your script, you give ax.minorticks_on but you need to call that function for anything to occur ax.minorticks_on() Also, did you see http://matplotlib.org/examples/pylab_examples/axes_props.html in case your original question was not answered. -Sterling On Jun 1, 2015, at 1:24PM,

Re: [Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-03-31 Thread Sterling Smith
I’m not going to claim this is the final answer, but in the documentation for the stem function[1], it specifically says that the horizontal line is drawn at 0. A workaround is to subtract the offset from your data, and relabel the axes….

Re: [Matplotlib-users] Lorenz -- another Q

2015-03-12 Thread Sterling Smith
Prahas, If I read it correctly, it looks like all of your x,y,z values are stored in x_t (and computed before plotting). See http://docs.scipy.org/doc/numpy/reference/generated/numpy.savetxt.html to output these to a file, if so desired. -Sterling On Mar 11, 2015, at 8:07AM, Prahas David

Re: [Matplotlib-users] plt scale x-axis by constant factor f

2015-03-09 Thread Sterling Smith
That was untested. It should start with (still untested) x = array(range(len(array)) On Mar 9, 2015, at 11:11AM, Sterling Smith smit...@fusion.gat.com wrote: Christian, To define your x coordinate, try x = range(len(array)) x = x/10. plot(x,array) -Sterling On Mar 9, 2015, at 10

Re: [Matplotlib-users] plt scale x-axis by constant factor f

2015-03-09 Thread Sterling Smith
Christian, To define your x coordinate, try x = range(len(array)) x = x/10. plot(x,array) -Sterling On Mar 9, 2015, at 10:57AM, Christian Jorgensen chrisj...@gmail.com wrote: My array does not have an explicit x-coordinate representation. The x-coordinate is simply the index.

Re: [Matplotlib-users] Bar Graph and X-axis data marks

2015-03-04 Thread Sterling Smith
Nertskull, If no one responds, you might repost with some examples of what you’ve tried. I would suggest xticks and company, but I’m not sure if it works in your situation. -Sterling On Mar 4, 2015, at 6:20PM, Nertskull nertsk...@gmail.com wrote: I've searched and can't figure this out.

Re: [Matplotlib-users] How to place an image colorbar next to the image when there are several subplots ?

2015-02-20 Thread Sterling Smith
Peter, I think that you want cax = ax1.imshow(…) cbar = fig.colorbar(cax,ax=ax1) # Where the ax keyword tells the colorbar which axes to steal space from. [1] If you want the colorbar to be to the right of the first axes, and have the second and third axes line up with the first, then you need

Re: [Matplotlib-users] How to place an image colorbar next to the image when there are several subplots ?

2015-02-20 Thread Sterling Smith
Peter, You’re welcome. While I appreciate that you are trying to cut down on unnecessary emails (as per emailcharter.org - interesting read), it is appropriate to include the list in your responses, especially one indicating that a solution has been found, so that others on the list stop

Re: [Matplotlib-users] using it in a Qt5-Widget

2015-01-28 Thread Sterling Smith
Did you come across http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html ? -Sterling On Jan 28, 2015, at 11:38AM, moon...@posteo.org wrote: On 2015-01-28 16:25 Thomas Caswell tcasw...@gmail.com wrote: It should be exactly the same as for Qt4, just importing from the Qt5

Re: [Matplotlib-users] Control of the display of the navigation toolbar --- how?

2014-11-12 Thread Sterling Smith
Virgil, Presumably you set up some callback function that is called when you click on the first figure, and which creates the second figure. Can't you change rcParams['toolbar'] in that callback function? Does it not have any effect? -Sterling On Nov 12, 2014, at 12:50PM, Virgil Stokes

Re: [Matplotlib-users] Control of the display of the navigation toolbar --- how?

2014-11-12 Thread Sterling Smith
Virgil, Glad to hear you got it to work. You are right that you have to set rcParams before the corresponding element is created (in this case the figure) for the rcParams to affect that creation. -Sterling On Nov 12, 2014, at 4:00PM, Virgil Stokes wrote: On 12-Nov-14 22:20, Sterling

Re: [Matplotlib-users] Equivalent of d3's step-after interpolation?

2014-10-30 Thread Sterling Smith
http://stackoverflow.com/questions/8921296/how-do-i-plot-a-step-function-with-matplotlib-in-python On Oct 30, 2014, at 11:29AM, Benjamin Root wrote: Kinda sounds a bit like a barchart with the 'step' option, I think? On Thu, Oct 30, 2014 at 12:16 PM, Skip Montanaro s...@pobox.com wrote:

Re: [Matplotlib-users] markers with same size in legend box

2014-10-24 Thread Sterling Smith
Your solution is about as good as proxy artists in legends, which would be the official method. (Google proxy artist matplotlib.) It may be relevant that you can access the marker of the legend entries with the _marker attribute of the handles. Search the mailing list archives for this one.

Re: [Matplotlib-users] twinx cla problem

2014-10-10 Thread Sterling Smith
This is not tested, but did you try ax2.clear() instead? -Sterling On Oct 10, 2014, at 7:45AM, Duke, Charles wrote: With matplotlib 1.4.0 the cla() method for the twinx axes also clears the primary axes. With matplotlib 1.3.1 the method only clears the twinx axes as expected. I have a

Re: [Matplotlib-users] A separate legend box for the markers only?

2014-09-12 Thread Sterling Smith
Try googling proxy artist, which leads to this page: http://matplotlib.org/users/legend_guide.html -Sterling On Sep 12, 2014, at 11:01AM, ConcreteVitamin wrote: Accidentally hit send, sorry.. Completed email: I have a graph that looks like this [1], in which each line has different markers

Re: [Matplotlib-users] A separate legend box for the markers only?

2014-09-12 Thread Sterling Smith
. Only the blue line is there. Is there a way to make only the markers show up? http://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists On Fri, Sep 12, 2014 at 11:29 AM, Sterling Smith smit...@fusion.gat.com wrote: Try googling

Re: [Matplotlib-users] (no subject)

2014-09-05 Thread Sterling Smith
When I wanted to make my math text in a LaTeX beamer presentation upright, I added the following to my beamer style file: %%Attempt to get upright math symbols \AtBeginDocument{ \DeclareSymbolFont{pureletters}{\encodingdefault}{\mathfamilydefault}{m}{n}

Re: [Matplotlib-users] Region within contour -- 2D array

2014-08-28 Thread Sterling Smith
Joe and list, This is off topic, but can you point me to good documentation on the use of '' as opposed to numpy.logical_and ? Thanks, Sterling On Aug 28, 2014, at 7:18PM, Joe Kington wrote: Why not just use boolean indexing? E.g. to find the region that falls between 5 and 10, do (z

Re: [Matplotlib-users] Multiple lines of xtick_labels

2014-08-15 Thread Sterling Smith
How about prepending '\n' to your minor labels? On Aug 15, 2014, at 1:38PM, Ted To wrote: Hi, I'm trying to set two lines of xtick_labels But I can't figure out how to get them on separate lines. These are for errorbars where I have two variables for each of four categories. Using the

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Sterling Smith
On Apr 23, 2014, at 11:41AM, Jody Klymak wrote: On Apr 23, 2014, at 8:35 AM, Chao YUE chaoyue...@gmail.com wrote: yes, Ben, I understand the difference now. To Mike: I have to select the region of the figure I need in the pdf file and paste it in the powerpoint ... Isn't this you're

Re: [Matplotlib-users] Variable size markers legend formatting

2014-04-11 Thread Sterling Smith
work the other way around with proxy artists. IOW, make the artists but never add them to the plot. http://matplotlib.org/users/legend_guide.html?highlight=proxy%20artists#using-proxy-artist (works with Line2D artists) -p On Wed, Apr 9, 2014 at 1:44 AM, Sterling Smith smit

Re: [Matplotlib-users] Variable size markers legend formatting

2014-04-08 Thread Sterling Smith
Adam, I haven't investigated, but does the discussion of the legend marker at [1] help? -Sterling [1] https://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg25200.html On Apr 8, 2014, at 3:44PM, Adam Hughes wrote: Hello, I've been searching but can't seem to find this

Re: [Matplotlib-users] Conflict matplotlib ctypes

2014-03-28 Thread Sterling Smith
You forgot to add the line that causes the problems. You might want to give a minimum self contained working example. -Sterling On Mar 28, 2014, at 12:20PM, Jorge Ferrando wrote: Hello I'm workign on a project where we are using ctypes and I wanted to plot some data with matplotlib.

Re: [Matplotlib-users] Left-aligned and centered title

2014-03-17 Thread Sterling Smith
Florian, I think that you need to add the ax.titleOffsetTrans to the ax.transAxes transformation. ax.text(0,pos[1],letter,transform=ax.transAxes+ax.titleOffsetTrans,va=va) -Sterling On Mar 17, 2014, at 6:31AM, Florian M. Wagner wrote: Dear users, I would like label my subplots with a

Re: [Matplotlib-users] Example showing differences between Mac O$ and Windows use

2014-03-13 Thread Sterling Smith
+1 for macports (I haven't used the others.) On Mar 13, 2014, at 10:12AM, Felix Patzelt wrote: Are you sure that you want to use Python 3.3 on OSX 10.6??? Do you really still use 10.6? Do you want Python 3? I'm not sure on the current status, but many projects took quite a while to get

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Sterling Smith
You have an uppercase 'Confidence'. Are you using pandas or numpy? For numpy, from Piet's email, you need a lowercase key. What does `print df['Confidence'].shape` yield? Because the error looks like you have an array with no size (zero dimensions), so perhaps you are still not reading in

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Sterling Smith
combination of upper and lower case. All columns have the exact same number of lines and there are no empty entries. On Feb 28, 2014, at 3:31 PM, Sterling Smith smit...@fusion.gat.com wrote: You have an uppercase 'Confidence'. Are you using pandas or numpy? For numpy, from Piet's email, you need

Re: [Matplotlib-users] problem with multiple axes

2014-02-07 Thread Sterling Smith
Claude, Did you try ax3 = ax1.twinx() ? -Sterling On Feb 7, 2014, at 1:30AM, mariusz sapinski wrote: Hi, I'm trying to get a plot with multiple axes on the righ, and it does not work. Attached is the plot: the second axis (ax2) is not correctly plotted. The code is below. What is wrong?

Re: [Matplotlib-users] savefig - legend only

2014-01-31 Thread Sterling Smith
Is it legend(loc='auto') or legend(loc='best')? I always used the latter. I think that http://matplotlib.org/api/legend_api.html supports me here. -Sterling On Jan 31, 2014, at 8:31AM, Benjamin Root wrote: I would also like to point out that you can specify auto for a location, and

Re: [Matplotlib-users] could I get rid of the contour of Antarctica by using Basemap?

2013-12-30 Thread Sterling Smith
Chao, I know nothing of the Basemap toolkit so I can't comment on the removal of continents, but presumably the text command you are using takes some keywords to set the properties of the bounding box. Try setting the background of the bounding box to white so that your words show up cleanly.

Re: [Matplotlib-users] setting x tick labels with matshow

2013-12-05 Thread Sterling Smith
Kelson, Reading the documentation of matshow help(matshow) reveals that it passes most keywords to imshow. Documentation of imshow help(imshow) says it has an extent keyword to indicate the x and y ranges (instead of the array index). So something like (untested) matshow(your

Re: [Matplotlib-users] Normalizing Marker Size in Legend

2013-12-05 Thread Sterling Smith
Matthew, See the discussion at http://matplotlib.1069221.n5.nabble.com/Legend-Marker-Color-Bug-td38695.html -Sterling On Dec 4, 2013, at 3:48PM, Matthew Niznik wrote: Hi all, I have a plot in which I have 15 markers, each with a separate size (created by calls to plot()). Because of

Re: [Matplotlib-users] multi colored text

2013-10-30 Thread Sterling Smith
On Oct 30, 2013, at 7:47AM, Scott Lasley wrote: On Oct 30, 2013, at 10:14, Neal Becker ndbeck...@gmail.com wrote: I have a blue line plot and a green line plot. I'd like to add some figtext at the bottom, and I'd like the text colors to match the plot colors. So I'd have some

Re: [Matplotlib-users] AttributeError: 'BarContainer' object has no attribute 'autoscale_None'

2013-10-15 Thread Sterling Smith
) scalarMap.set_array(normed) plt.colorbar(scalarMap,ax=ax) plt.show() }}} On Oct 14, 2013, at 6:12AM, Nils Wagner wrote: Here is a self contained version. Nils On Fri, Oct 11, 2013 at 4:33 PM, Sterling Smith smit...@fusion.gat.com wrote: Nils, I tried to run your example

Re: [Matplotlib-users] AttributeError: 'BarContainer' object has no attribute 'autoscale_None'

2013-10-11 Thread Sterling Smith
Nils, I tried to run your example, but there are some variables which are undefined. Can you post a self contained revision of your example? -Sterling On Oct 11, 2013, at 1:34AM, Nils Wagner wrote: plt.colorbar(scalarMap,ax=ax) results in cm.py, line 309, in autoscale_None raise

Re: [Matplotlib-users] Problems using Matplotlib from a GTK app

2013-10-11 Thread Sterling Smith
Skip, Here are some lines from an application I have written. from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg In the setup: self.canvas = FigureCanvasGTKAgg(self.figure) self.canvas.set_size_request(600,600) self.canvas.show() #Pack the canvas in a parent

Re: [Matplotlib-users] import matplotlib.pyplot does not work

2013-10-02 Thread Sterling Smith
I highly recommend macports[1] as the method to install matplotlib, as I have never had issues. -Sterling [1] http://www.macports.org/install.php On Oct 2, 2013, at 7:39AM, pymilo wrote: Hello everyone, I want to work whit matplotlib and I installed it using pip command. Apparently the

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-10-01 Thread Sterling Smith
On Oct 1, 2013, at 11:01AM, Jody Klymak wrote: On Oct 1, 2013, at 10:55 AM, KURT PETERS petersk...@msn.com wrote: Goyo, Thanks, the code below seems to work. The problem is that with REAL/actual data, I have SO many data points that each point is now labeled and it takes forever

Re: [Matplotlib-users] x axis non-uniform labeling (KURT PETERS)

2013-10-01 Thread Sterling Smith
On Oct 1, 2013, at 8:59AM, KURT PETERS wrote: REPLY: here's what SHOULD be happening | 0 1 5 9 13 18 21 24 25 28 3 | x |x x | x

Re: [Matplotlib-users] How to control the y feedback value?

2013-09-19 Thread Sterling Smith
On Sep 19, 2013, at 10:14AM, Skip Montanaro wrote: Separately, if your blue data are so quantized, you might use the blue data to choose a color for an axvspan (or axhspan, I forget which is which) to indicate how certain regions of time have different values of blue data. Then you

Re: [Matplotlib-users] How to control the y feedback value?

2013-09-19 Thread Sterling Smith
Skip, I assume that you are using a twinx call to get the second y axis. I think that this question has come up before, and I think the solution was to switch which data are put on the second set of axes. (Of course to keep the same visual layout you would have to play with the y axis spine

Re: [Matplotlib-users] Matplotlib V1.3 suptitle

2013-08-23 Thread Sterling Smith
On Aug 23, 2013, at 7:43AM, Benjamin Root wrote: On Fri, Aug 23, 2013 at 9:57 AM, Peter Bloomfield peter.bloomfi...@camhpet.ca wrote: Good morning, I am running openSuSE 12.2, and this morning I upgraded matplotlib to v1.3, and now I am having a problem with suptitle. I use the

Re: [Matplotlib-users] Intersecting polygons

2013-08-23 Thread Sterling Smith
PS. Try to convince the Dark Powers of the journal you send your work, that they modernize their processing and accept PDF. +1 -- Introducing Performance Central, a new site from SourceForge and AppDynamics.

Re: [Matplotlib-users] how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool?

2013-07-29 Thread Sterling Smith
in the interacitve window (like, you can use your mouse to select the left/righ/wspace etc) I hope I am clear. thanks! cheers, Chao On Fri, Jul 26, 2013 at 5:55 PM, Sterling Smith [via matplotlib] [hidden email] wrote: Chao, You are right, fig.add_subplot does not support

Re: [Matplotlib-users] how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool?

2013-07-26 Thread Sterling Smith
a subplot with precise position, as in the method of fig.add_axes? Does fig.add_subplot support this, I tried fig.add_subplot(position=(0.2,0.2,0.1,0.1)) but it does not work... thanks! Chao On Thu, Jul 25, 2013 at 8:09 PM, Sterling Smith [via matplotlib] [hidden email] wrote: Chao

Re: [Matplotlib-users] how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool?

2013-07-25 Thread Sterling Smith
Chao, plt.subplots returns a figure instance. Can you use the add_subplot method of that figure instance to make your new axes? If so, then I think that they should respond to the new requests for left/right/bottom/wspace space. -Sterling On Jul 25, 2013, at 10:06AM, Chao YUE wrote: Dear

Re: [Matplotlib-users] Matplotlib backend issue

2013-07-22 Thread Sterling Smith
On Jul 20, 2013, at 3:04PM, Tommy Grav wrote: On Jul 20, 2013, at 11:19 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: Ok, so with a long list of print statements I have tracked it down to the statement import matplotlib._png as _png in image.py. Tommy, Instead of a lot of print

Re: [Matplotlib-users] Dynamically change X time format while zooming plot?

2013-07-12 Thread Sterling Smith
Skip, I am not at all familiar with dates in matplotlib, but what does plt.xlim() yield? Or are the limits not updated before calling the tick formatter? -Sterling On Jul 12, 2013, at 8:49AM, Skip Montanaro wrote: Let me return to my FuncFormatter usage. As I indicated in an earlier post,

Re: [Matplotlib-users] Hovemuller Diagram

2013-07-12 Thread Sterling Smith
Sudheer, Although the documentation is not consistent with the following (as of v1.0.1), the X and Y arguments to contourf can be 1D arrays. Consider: from pylab import * x=range(100) y=range(20) xx,yy=meshgrid(x,y) z=xx**2+yy**2 contourf(x,y,z) matplotlib.contour.QuadContourSet instance

Re: [Matplotlib-users] legend marker update problem

2013-05-17 Thread Sterling Smith
). Is it worth reporting on the mpl issue tracker (or have you done it that time)? Gregorio 2013/5/16 Sterling Smith smit...@fusion.gat.com: Gregorio, I experienced a similar issue with trying to change the marker color. See below the previous response from JJ for accessing the legend

Re: [Matplotlib-users] legend marker update problem

2013-05-16 Thread Sterling Smith
Gregorio, I experienced a similar issue with trying to change the marker color. See below the previous response from JJ for accessing the legend marker or using a proxy artist. -Sterling On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote: On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith smit

Re: [Matplotlib-users] Individual custom markers and colorbar

2013-04-26 Thread Sterling Smith
Notwithstanding these probably work (I haven't tried), my gut reaction would have been to color the edges the same as the face, although I don't know if you can give set_edgecolor the same cmap(colors_norm) argument. -Sterling On Apr 26, 2013, at 5:30AM, Ryan Nelson wrote: Hackstein,

Re: [Matplotlib-users] Trying to migrate to Python 3.2, Matplotlib 1.2.1

2013-04-19 Thread Sterling Smith
I have used the TkAgg backend in python2, installing the dependencies by hand. Is this backend not available for python3? -Sterling On Apr 18, 2013, at 8:03PM, John Ladasky wrote: Thanks to both Francesco Montesano and Benjamin Root. I have done some reading. And I have made some

Re: [Matplotlib-users] How to add number near point of scatter plot?

2013-04-06 Thread Sterling Smith
See plt.text and plt.annotate See http://matplotlib.org/users/annotations_guide.html and references therein. -Sterling On Apr 6, 2013, at 3:54PM, Zhu, Shenli wrote: How to add number near point of scatter plot? e.g. I have two point 1 is (1,3) and point 2 (2,4), how can I add 1 and 2 to

Re: [Matplotlib-users] Trouble with legend and axis scaling

2013-03-27 Thread Sterling Smith
regards, frix Am 26.03.2013 um 20:36 schrieb Sterling Smith smit...@fusion.gat.com: Frix, It may be useful to post the version and backend you are using to the list. import matplotlib print matplotlib.__version__ print matplotlib.get_backend() Also, if you can format the code

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Sterling Smith
Steven, Did you mean to switch back to AxesGrid? I thought you said that it was fixed with Grid. -Sterling On Mar 22, 2013, at 9:30AM, Steven Boada wrote: Well... I jumped the gun. To better illustrate the problem(s) I am having, I wrote a simple script that doesn't work... import

Re: [Matplotlib-users] another failed attempt (realtime)

2013-03-11 Thread Sterling Smith
Neal, You might try mpl.use('GTKAgg') as I have seen problems with lone GTK. Also you might change this in your .matplotlibrc file if possible. -Sterling On Mar 11, 2013, at 10:43AM, Neal Becker wrote: According to other examples I see on the web, use of 'relim' and 'autoscale_view'

Re: [Matplotlib-users] Giving Peak number

2013-03-05 Thread Sterling Smith
Matplotlib User (I'm not sure how to address you), I think that you are looking for either text() or annotate(). -Sterling On Mar 5, 2013, at 4:12AM, nittopuran natya wrote: Hi, I have this script which gives output the image attached here. What I want is to give all the peak a number

Re: [Matplotlib-users] overlapping ticks in x axis

2013-03-05 Thread Sterling Smith
Vineeth, I think that you are looking for from matplotlib.ticker import MaxNLocator -Sterling On Mar 3, 2013, at 5:38PM, vineeth wrote: Hello, I have attached the histogram that I generated. When specifying large numbers like 1000 or more, the xticks tend to overlap and it gives a clumsy

Re: [Matplotlib-users] cross correlation

2013-02-08 Thread Sterling Smith
Sudheer, For the documentation you are looking for print ax1.xcorr.__doc__ (Paul tried to give you the IPython method of getting that documentation which is by typing a ? (or ??) after the desired object.) In the documentation (at the link you gave

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread Sterling Smith
On Jan 22, 2013, at 7:01PM, Benjamin Root wrote: On Tue, Jan 22, 2013 at 9:10 PM, Drain, Theodore R (343P) theodore.r.dr...@jpl.nasa.gov wrote: I have to say I disagree with this fix. None was a nice, very intuitive way to hide the label. Many Python systems use None in that kind of

Re: [Matplotlib-users] colorbars with multiple subplots

2012-12-13 Thread Sterling Smith
Claus, f.colorbar may be trying to place the colorbar on the 'current axes'. Does placing plt.axes(axarr[0,0]) before each f.colorbar help? Also, the plt.colorbar function [1] (maybe f.colorbar also) can take a keyword argument for the axes in which to draw the colorbar. -Sterling [1]

Re: [Matplotlib-users] Label for axhline

2012-11-28 Thread Sterling Smith
Mads, I recommend trying a text object[1], with a transform which is a blended transform from a transform factory[2]. Also, you probably want the x coordinate in axes coordinates, with a left horizontal alignment. -Sterling [1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.text

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-19 Thread Sterling Smith
,ha='left') cheers, Chao On Sat, Nov 17, 2012 at 12:12 AM, Sterling Smith smit...@fusion.gat.com wrote: Chao, If you don't need the tick marks and are only annoyed by their appearance in the colorbar, then I am pasting below our code so far setting the tick length to 0. Code so

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-16 Thread Sterling Smith
Chao, The secret is positioning your ticks. I list here an untested attempt at putting the labels at the average of the current and next levels: cbar.set_ticks((cbarlevel[1:]+cbarlevel[:-1])/2.) Because you have less ticks, then you will want to remove the line cbar_level.append('') Hope

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-16 Thread Sterling Smith
, at 12:58PM, Chao YUE wrote: Thanks Sterling. It's a good idea. Unluckily, I lose the original ticks and the ticks appeared in the middle. Is there any approach I can keep the original ticks while realizing what has been shown in the figure? Chao On Fri, Nov 16, 2012 at 5:47 PM, Sterling

Re: [Matplotlib-users] Why is pip not mentioned in the Installation Documentation?

2012-11-16 Thread Sterling Smith
On Nov 16, 2012, at 2:25PM, Russell E. Owen wrote: In article 50a61b5b.1090...@ed.ac.uk, Mathew Topper mathew.top...@ed.ac.uk wrote: Hi, I'm interested to know why the pip package manager is not more widely supported for installation of python packages like matplotlib? Matplotlib

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-17 Thread Sterling Smith
Hari, While I am not intimately acquainted with the inner working of the interactive matplotlib functionality, I have seen that it tries to not update the figure if you ask for some change to it while it is trying to update the figure. That sounds circular, but oh well. Perhaps you could

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Sterling Smith
Hari, You can give a number to figure(), as in figure(1), and it will reuse figure 1. Also, you can close figure 1 with pyplot.close(1). -Sterling On Oct 16, 2012, at 8:25AM, hari jayaram wrote: Hi I am a relative newbie to matplotlib. I have a python script that handles a dataset that

Re: [Matplotlib-users] Development advice needed

2012-10-03 Thread Sterling Smith
Jianbao, The one thing I would add to Anthony's response, which is a good summary of what I would say, is that you should look into the animation aspects of matplotlib, and the xdata and ydata attributes of lines/axes for speed in replotting mostly similar situations. I regret having not

Re: [Matplotlib-users] sharex with different tick labels

2012-09-13 Thread Sterling Smith
Daniel, I found that I came across this often, so I created three functions (one for sharing x, one for y, and one for both). In looking over them right now, there may be some inconsistencies between their style, but the idea is there. I am pasting them below in case they are useful to

Re: [Matplotlib-users] Legend Marker Color Bug

2012-09-05 Thread Sterling Smith
On Sep 4, 2012, at 5:33PM, Jae-Joon Lee wrote: On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith smit...@fusion.gat.com wrote: I still do not get black markers. Furthermore, if you try to make a new legend with the result of leg.get_lines(), you will get lines without markers, which leads me

Re: [Matplotlib-users] Legend Marker Color Bug

2012-09-04 Thread Sterling Smith
On Aug 31, 2012, at 11:29AM, Goyo wrote: 2012/8/30 Sterling Smith smit...@fusion.gat.com: Thank you for taking the time to consider my question. I'm sorry that I didn't pose my question correctly. I should have said: 'Consider the _results_ of the following script:' I originally tried

Re: [Matplotlib-users] Legend Marker Color Bug

2012-08-30 Thread Sterling Smith
On Aug 30, 2012, at 12:35PM, Benjamin Root wrote: On Thu, Aug 30, 2012 at 3:26 PM, Goyo goyod...@gmail.com wrote: 2012/8/28 Sterling Smith smit...@fusion.gat.com: List, Consider the following script: import pylab pylab.plot(pylab.linspace(0,1,100),label='Test',marker='o',ls

[Matplotlib-users] Legend Marker Color Bug

2012-08-28 Thread Sterling Smith
List, Consider the following script: import pylab pylab.plot(pylab.linspace(0,1,100),label='Test',marker='o',ls='') pylab.plot(pylab.linspace(0,1,100),label='Test2',marker='o',ls='-') leg=pylab.legend(loc='best') line=leg.get_lines() line[0].set_color('black') line[1].set_color('black')

[Matplotlib-users] How connect axes on matplotlib subplots

2012-02-02 Thread Sterling Smith
Hello! How can I zoom exactly on the same region on two different subplots at the same time. This option is enable when I use plotfile but not if I use plot, and subplots? Thx! Fabien Fabien, When you create the new subplots, add the sharex=ax, sharey=ax keywords, where ax is the

[Matplotlib-users] Removing ticks and frame (imshow)

2011-11-28 Thread Sterling Smith
From: Marianne C. mariyann...@gmail.com Date: November 24, 2011 6:48:34 AM PST To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] Removing ticks and frame (imshow) Hi all, My name is Marianne, I am a beginner user of matplotlib. I am using imshow in pyplot. I am

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 65, Issue 49

2011-10-28 Thread Sterling Smith
From: John Hunter jdh2...@gmail.com Date: October 28, 2011 5:54:36 AM PDT To: Adam Mercer ramer...@gmail.com Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Legend and proxy artists On Thu, Oct 27, 2011 at 8:12 AM, Adam Mercer ramer...@gmail.com wrote:

Re: [Matplotlib-users] Legend and proxy artists

2011-10-27 Thread Sterling Smith
Adam, Your example is not complete. I don't understand the value variable that you are iterating over, or how it affects the different plots you are making. I would guess that the problem is that you have a list of tuples of handles for value_plot, instead of a list of handles. Note that

Re: [Matplotlib-users] Legend and proxy artists

2011-10-27 Thread Sterling Smith
your code to work now (it may be related to https://github.com/matplotlib/matplotlib/pull/534). -Sterling On Oct 27, 2011, at 8:32PM, Adam Mercer wrote: On Thu, Oct 27, 2011 at 12:05, Sterling Smith smit...@fusion.gat.com wrote: Your example is not complete. I don't understand the value

Re: [Matplotlib-users] Figure legend for 1.1.0 doesn't properly handle errorbars?

2011-10-19 Thread Sterling Smith
'). Or, if you don't need axes legend, you may do legend(h,l,loc='lower right', bbox_to_anchor=[0,0,1,1], bbox_transform=fig.transFigure) Regards, -JJ On Tue, Oct 18, 2011 at 6:59 AM, Sterling Smith smit...@fusion.gat.com wrote: Let me first say that I appreciate the work

[Matplotlib-users] Figure legend for 1.1.0 doesn't properly handle errorbars?

2011-10-17 Thread Sterling Smith
Let me first say that I appreciate the work that the developers have put into matplotlib. You're doing a great job. I have filed a bug report at https://github.com/matplotlib/matplotlib/issues/533 wherein I post the following Consider: from pylab import * x = arange(0,1,.01) y = x**2 fig