Re: [Matplotlib-users] add cirlce around lat lon

2011-12-06 Thread Thomas Lecocq
Dear, you can try my tutorial to achieve this properly : http://www.geophysique.be/2011/02/20/matplotlib-basemap-tutorial-09-drawing-circles/ Cheers, Thom ps : on the "things to do when I have some time" list : commit a method to the default basemap package to do this... Da

Re: [Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
>>> Benjamin Root 12/07/11 4:16 AM >>> > > Use draw_idle() if performance is an issue. Also, you don't have to redraw > everything. You can save the object returned by avline() > and in subsequent draws, just modify the data. Usually, there is a set_data() > or a set_xy() method you can use f

Re: [Matplotlib-users] add cirlce around lat lon

2011-12-06 Thread Benjamin Root
On Tuesday, December 6, 2011, questions anon wrote: > I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command. > I have tried using > map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color='k') > but this doesn't do anythin

Re: [Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Benjamin Root
On Tuesday, December 6, 2011, Sven Duscha wrote: > Hi, > > > I kind of got the basic functionality working using > > > cid = self.fig.canvas.mpl_connect('motion_notify_event', > self.update_marker) > > > def update_marker(self, event): > print "plotMarker()" # DEBUG > self.m

[Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
Hi, I kind of got the basic functionality working using cid = self.fig.canvas.mpl_connect('motion_notify_event', self.update_marker) def update_marker(self, event): print "plotMarker()" # DEBUG self.marker=self.ax1 #print 'button=%d, x=%d, y=%d, xdata=%

[Matplotlib-users] add cirlce around lat lon

2011-12-06 Thread questions anon
I would like to draw a simple circle around a specified latitude and longitude but I cannot find an appropriate command. I have tried using map.drawgreatcircle(myLON, myLAT,myLON, myLAT, linewidth=20,color='k') but this doesn't do anything or even map.drawgreatcircle(myLON+1, myLAT+1,myLON-1, myLAT

[Matplotlib-users] moving marker line under mouse

2011-12-06 Thread Sven Duscha
Hi, how could I realize a moving marker line under the mouse pointer? I know about event handling http://matplotlib.sourceforge.net/users/event_handling.html and would use ‘ axes_enter_event’ to react on, then draw a line with axvline(x=event.xdata, linewidth=1, color='r') but how can

Re: [Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
>>> Sven Duscha 12/06/11 4:50 PM >>> On Dec 6, 2011, at 4:34 PM, Till Stensitzki wrote: > I think you have to plot something, else matplotlib don't know where to draw the > ticks. Thankfully that got solved; I had an additional self.ax1.get_xaxis().set_visible(False) somewhere in my code.

Re: [Matplotlib-users] bug in fcontour with v1.1.0 ?

2011-12-06 Thread Eric Firing
On 12/06/2011 12:43 AM, Arnaud wrote: > Hello, and thank you for this answer. > > I do not care that much of the colorbar, i added it to make sure the > range actually started at 0. > I used the contour function to that purpose too i.e. to show that my > function actally ranged from 0 to 100. > >

Re: [Matplotlib-users] ft2font.cpp memory fix patch not in 1.1.x branch

2011-12-06 Thread Michael Droettboom
You're not crazy. The v1.1.x branch got inadvertently moved to master yesterday. On the v1.1.x branch this fix is not applied. I will do so now. Mike On 12/05/2011 05:46 PM, Benjamin Root wrote: Heh, strange... I could have sworn that the reference counter decrements were there... Ok, looks

Re: [Matplotlib-users] Large values in histograms not showing

2011-12-06 Thread Leo Breebaart
Benjamin Root writes: > Confirmed. This seems to be a bug, but a quick glance at hist() doesn't > make it obvious to me what the cause is. Perhaps it is in bar()? > > Leo, could you please file a bug report on github? Done. -- Leo Breebaart --

Re: [Matplotlib-users] plot_surface fails with log axes ?

2011-12-06 Thread Benjamin Root
On Tue, Dec 6, 2011 at 11:15 AM, Arnaud wrote: > thanks, of course, this work. > I will have to edit ticks labels ... > > shall we expect a correction in near future ? > It is doubtful unless I have some sort of eureka moment. I have been tinkering with this problem on-and-off for a few months n

Re: [Matplotlib-users] Problem plotting dashed lines

2011-12-06 Thread Benjamin Root
On Mon, Dec 5, 2011 at 10:09 AM, JASON TILLEY wrote: > I am trying to put two regression lines on one scatter plot, but the > dashes on the lines are inconsistent. I get different length dashes in > different spots, and this won't be acceptable for publication I imagine. Do > you have nay idea of

Re: [Matplotlib-users] plot_surface fails with log axes ?

2011-12-06 Thread Arnaud
thanks, of course, this work. I will have to edit ticks labels ... shall we expect a correction in near future ? best, -- RHENOVIA - Arnaud LEGENDRE. Le mardi 06 décembre 2011 à 10:45 -0600, Benjamin Root a écrit : > On Tue, Dec 6, 2011 at 10:08 AM, Arnaud > wrote: > Hello, >

[Matplotlib-users] Problem plotting dashed lines

2011-12-06 Thread JASON TILLEY
I am trying to put two regression lines on one scatter plot, but the dashes on the lines are inconsistent. I get different length dashes in different spots, and this won't be acceptable for publication I imagine. Do you have nay idea of what could be causing this? I've thought it could be relate

[Matplotlib-users] Inconsistent marker/line zorder in errorbar legend

2011-12-06 Thread Adrian Del Maestro
Hello, I have run across an inconsistency in the zorder of markers and lines in the legend for an errorbar as opposed to a plot in matplotlib v1.1.0. After some considerable amount of time reading legend_handler.py and the information at http://matplotlib.sourceforge.net/users/legend_guide.html I

Re: [Matplotlib-users] plot_surface fails with log axes ?

2011-12-06 Thread Benjamin Root
On Tue, Dec 6, 2011 at 10:08 AM, Arnaud wrote: > Hello, > > i encountered a problem when trying to set axes as logarithmic in a 3D > plot using plot_surface(). > > I do not know if it is a known bug or if it is a workaround ...? > Yes, this is a known bug and it is a very tricky one to untangle.

[Matplotlib-users] plot_surface fails with log axes ?

2011-12-06 Thread Arnaud
Hello, i encountered a problem when trying to set axes as logarithmic in a 3D plot using plot_surface(). I do not know if it is a known bug or if it is a workaround ...? the failing code is : #!/usr/bin/python import os import sys from pylab import * from mpl_toolkits.mplot3d import Axes3D from

Re: [Matplotlib-users] Large values in histograms not showing

2011-12-06 Thread Benjamin Root
On Tue, Dec 6, 2011 at 6:56 AM, Leo Breebaart wrote: > fig = plt.figure() > ax = fig.add_subplot(111) > # Plot as expected: single bar in the center: > #result = ax.hist([1.0e+14], 5) > # Plot remains completely empty: > result = ax.hist([1.0e+16], 5) > print "result:", result > plt.show() > Co

Re: [Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
On Dec 6, 2011, at 4:34 PM, Till Stensitzki wrote: > I think you have to plot something, else matplotlib don't know where to draw > the > ticks. I do plot data, both with .scatter and .plot. The data is plotted perfectly fine, just without any xaxis marks. The whole source code of the appli

Re: [Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Till Stensitzki
I think you have to plot something, else matplotlib don't know where to draw the ticks. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist

Re: [Matplotlib-users] how to use different font for serif

2011-12-06 Thread Jonathan Slavin
From: Michael Droettboom > > To: matplotlib-users@lists.sourceforge.net > > Subject: Re: [Matplotlib-users] how to use different font for serif > > Date: Mon, 5 Dec 2011 14:49:09 -0500 > > > > What rcParams are you setting? > > > > font.family: serif > > font.serif: Times New Roman > > > > and

Re: [Matplotlib-users] missing data in plot

2011-12-06 Thread Till Stensitzki
David Belohrad writes: > This leads me to a conclusion, that matplotlib somehow 'chooses' the > data to be displayed. > > How can I force it to display all the data? I do not mind if not all the > data are displayed in the graph, but it seems that it does not bother to > skip as well the peaks

[Matplotlib-users] Large values in histograms not showing

2011-12-06 Thread Leo Breebaart
Hi all, It would appear that Axes.hist() does not handle large input values the way I was expecting it to. For example: - import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) # Plot as expected: single bar

[Matplotlib-users] display of x-axis ticks and labels

2011-12-06 Thread Sven Duscha
Hi, I am writing a small plotting GUI using Matplotlib 1.0.1 and QT4.6. Essentially I need interaction with the GUI, in order to sett plotted parameters and plotting limits. This means that I have to set up a figure in a canvas environment in order to use it in QT - at least that is what I ga

Re: [Matplotlib-users] bug in fcontour with v1.1.0 ?

2011-12-06 Thread Arnaud
Hello, and thank you for this answer. I do not care that much of the colorbar, i added it to make sure the range actually started at 0. I used the contour function to that purpose too i.e. to show that my function actally ranged from 0 to 100. Removing both colorbar and contour, i have the same

[Matplotlib-users] missing data in plot

2011-12-06 Thread David Belohrad
Dear All, I'm using matplotlib to generate graph from measured data in one of our accelerators. The issue I have, that the data vector is huge. We talk, say about 5 points to be displayed in a single graph, and I have to assure, that those points are really there. Otherwise the image will be b