Re: [Matplotlib-users] Happy Valentine's Day

2014-02-15 Thread Jason Grout
On 2/14/14 4:13 PM, Benjamin Root wrote: > I rolled a 20 today for necromancer, so I am going to do a thread > resurrection. Given recent improvements in matplotlib, we should > definitely make this web-enabled. That way, we can share our nerdiness > with our non-nerdy significant others. Here's

Re: [Matplotlib-users] indicating directions on stereographic projection.

2013-11-06 Thread Jason Grout
On 11/6/13 1:10 PM, Paul Hobson wrote: > I am **very far** from a GIS expert, but I believe that the cardinal > directions are ambiguous at the poles. In other words, if you're > standing on the North Pole, it'd difficult to head in any direction > that's not towards the south pole. > > Curious to

Re: [Matplotlib-users] Reports from SciPy 2013

2013-07-02 Thread Jason Grout
On 7/1/13 9:33 AM, Michael Droettboom wrote: > SciPy 2013 was a great success. I didn't get good headcount at the > matplotlib BOF, but it was a good number, and we had 15 participants at > various points during the sprints. It was nice to see the diversity of > experience with matplotlib at the

Re: [Matplotlib-users] 3d performance question

2012-12-18 Thread Jason Grout
On 12/18/12 6:53 AM, Sturla Molden wrote: > Interactive 2D plots can be sluggish too, if you have enough objects in > them. It is not the backend that is sluggish. Replacing the backend does > not speed up the frontend. > > OpenGL is only 'fast' if you have a frontend that exploits it (e.g. uses >

[Matplotlib-users] IPython receives $1.15 million from Alfred P. Sloan Foundation

2012-12-12 Thread Jason Grout
It's great to see a significant open-source python project that many of us use on a day-to-day basis get such great funding! Thanks, Jason -- Jason Grout -- LogMeIn Rescue: Anywhere, Anytime Remote support f

Re: [Matplotlib-users] plotting time series of bits

2012-12-06 Thread Jason Grout
On 12/5/12 8:36 PM, Dale Lukas Peterson wrote: > I have a time series of 32-bit unsigned integers in the form of a > numpy array with dtype=numpy.uint32. The bits of each integer in > array correspond to various boolean states collected during an > experiment. I would like to make a plot this dat

Re: [Matplotlib-users] colormap shift

2012-11-05 Thread Jason Grout
math.org/?q=89b0c945-2ce3-4645-bf61-dbe0eed2c5cd&lang=sage Thanks, Jason -- Jason Grout -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one

Re: [Matplotlib-users] Plotting a circle while also changing the limits of the axes

2012-11-05 Thread Jason Grout
On 11/5/12 3:19 PM, Benjamin Root wrote: > > > On Mon, Nov 5, 2012 at 3:51 PM, Brad Malone > wrote: > > Hello, > > I am trying to plot some small circles in my plotting window, in > addition to the curves I'm already plotting. If I don't want to set >

Re: [Matplotlib-users] XKCD style graphs?

2012-10-05 Thread Jason Grout
On 10/4/12 2:16 AM, Fernando Perez wrote: > This would make for an awesome couple of examples for the gallery, the > mathematica solutions look really pretty cool: > > http://mathematica.stackexchange.com/questions/11350/xkcd-style-graphs > > The matlab and R version not quite so much, still for re

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Jason Grout
On 10/4/12 9:11 AM, Michael Droettboom wrote: > Yes -- this would be a great application for the path filtering > infrastructure that matplotlib has. Is that the same as the path effects features, like http://matplotlib.org/examples/pylab_examples/patheffect_demo.html ? Thanks, Jason ---

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Jason Grout
On 10/4/12 4:02 AM, Pierre Haessig wrote: > Hi Fernando, > > Le 04/10/2012 09:16, Fernando Perez a écrit : >> This would make for an awesome couple of examples for the gallery, the >> mathematica solutions look really pretty cool: >> >> http://mathematica.stackexchange.com/questions/11350/xkcd-styl

Re: [Matplotlib-users] who (F/OSS science) uses matplotlib?

2012-06-05 Thread Jason Grout
On 6/3/12 6:41 PM, Kevin Hunter wrote: > I'm especially interested in open source/science/ projects that use > matplotlib. Sage (sagemath.org) uses matplotlib for nearly all its 2d graphics. Jason -- Live Security Virt

Re: [Matplotlib-users] FancyArrowPatch -|> style doesn't have solid arrowhead when linestyle='dashed'

2012-04-17 Thread Jason Grout
On 4/15/12 10:12 AM, Jae-Joon Lee wrote: > Unfortunately, this is something that I haven't considered when > implementing the FancyArrowPatch. > As you may know, FancyArrowPatch is a single patch object (at least > viewed from outside), so you cannot have multiple linestyles that can > be set by us

[Matplotlib-users] FancyArrowPatch -|> style doesn't have solid arrowhead when linestyle='dashed'

2012-04-12 Thread Jason Grout
When the -|> style was added to FancyArrowPatch, the purpose was to add an arrow style with a certain style shaft, but a solid head [1]. However, since the given linestyle is used for the outline of the head, we can have arrowheads that look very odd. Here is the example input and output: htt

Re: [Matplotlib-users] Question(s) for new MAC 10.7 User

2012-02-21 Thread Jason Grout
On 2/21/12 9:24 AM, Lou Pecora wrote: > To William Jennings. > > I would suggest you look at the SAGE python package > (http://www.sagemath.org/). Like Enthought it's an all-in-one package. > My package uses Python 2.6.4. Current versions may be higher. It has a > LOT of stuff, but you don't need t

Re: [Matplotlib-users] How matplotlib got me a job

2012-02-08 Thread Jason Grout
On 2/8/12 2:53 AM, Paul Ivanov wrote: > Patrick Marsh, on 2012-02-07 13:58, wrote: >> As I continue to mature as a Python person, I want to give back >> explicitly to the community that's given so much to me. The problem >> is, I don't know how. I'm intimidated by the awesomeness of what I see >>

Re: [Matplotlib-users] Partial coloring of text in matplotlib

2012-02-07 Thread Jason Grout
On 2/7/12 2:47 PM, Michael Droettboom wrote: > since this would never be full-fledged HTML anyway [1]. Famous last words, right? I'm curious: for the SVG backend, or a possible html5 canvas backend, can we already include html? I don't know, but I'm curious. Jason

Re: [Matplotlib-users] my pie charts gotta pop!

2011-12-14 Thread Jason Grout
On 12/14/11 6:33 PM, Justin wrote: > Any suggestions or places to find a gorgeous pie chart, let me know... I'd probably use Excel or OpenOffice if I were you. Jason -- 10 Tips for Better Server Consolidation Server vir

[Matplotlib-users] Line2D drawstyle

2011-05-30 Thread Jason Grout
In the docs for Line2D, it says that the linestyle can be "any drawstyle in combination with a linestyle, e.g. 'steps--'." However, this doesn't seem to work in practice. I believe I have matplotlib 1.0.1 here: In [2]: from matplotlib import lines In [3]: line=lines.Line2D([0,1,2],[0,1,4], li

Re: [Matplotlib-users] Boundary edges of a set of points

2011-04-28 Thread Jason Grout
On 4/28/11 9:03 PM, gary ruben wrote: > http://stackoverflow.com/questions/1920145/how-to-find-duplicate-elements-in-array-using-for-loop-in-python-like-c-c > i.e. > dups = [x for x in list_a if list_a.count(x)> 1] That involves iterating through your list_a a number of times to look for element

Re: [Matplotlib-users] GraphicsArray

2011-03-31 Thread Jason Grout
On 3/31/11 3:32 AM, T J wrote: > Any chance matplotlib can get functionality similar to GraphicsArray > in Mathematica? It'd be nice to make a single method to draw whatever > you want and then do this in a list comprehension. At the end, you > can arrange all those plots however you want. > > It

[Matplotlib-users] built docs contain .pyc files

2011-03-02 Thread Jason Grout
I tried building the standalone html docs using: cd doc python make.py html I notice that there are around 30 .pyc files left in the build/html/pyplots/ directory. Are these needed in the html documentation build directory? Also, it seems that the files in _images are redundant, as they are

Re: [Matplotlib-users] Any update on streamline plot

2011-02-12 Thread Jason Grout
On 2/11/11 3:06 PM, Ray Speth wrote: > Hi, > > I wrote a script to generate streamline plots using matplotlib a while > ago, and this post inspired me to finally clean it up a bit. The code is > available at http://web.mit.edu/speth/Public/streamlines.py and you can > see an example of its output a

Re: [Matplotlib-users] Is it possible to plot axes with arrows ?

2011-02-03 Thread Jason Grout
On 2/2/11 8:51 AM, Francois Maltey wrote: > Hello, > > I use matplolib by the mathematical system Sage in order to plot a function. > The Sage code calls matplotlib and uses its options : The Sage command is > > plot (sin, x, -5, 5) > > I add labels par axes_labels or remove axes by : > > plot (sin

[Matplotlib-users] latex ' (prime)

2011-02-03 Thread Jason Grout
Observe the following image: import pylab pylab.plot([0,1],[1,2],label="$\sigma'_0$") pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the single quote in the legend is not raised above the \sigma, like it would be in TeX (i.e., in TeX, $\sigma'_0$ is equivalent to

Re: [Matplotlib-users] latex ' (prime)

2011-02-01 Thread Jason Grout
On 2/1/11 11:40 AM, Darren Dale wrote: > On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout > wrote: >> Observe the following image: >> >> import pylab >> pylab.plot([0,1],[1,2],label="$\sigma'_0$") >> pylab.legend() >> pylab.savefig('test.

[Matplotlib-users] latex ' (prime)

2011-02-01 Thread Jason Grout
Observe the following image: import pylab pylab.plot([0,1],[1,2],label="$\sigma'_0$") pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the single quote in the legend is not raised above the \sigma, like it would be in TeX (i.e., in TeX, $\sigma'_0$ is equivalent to

Re: [Matplotlib-users] Possible to get variable spacing between certain subplots?

2010-12-14 Thread Jason Grout
On 10/28/10 1:18 PM, Will Grover wrote: > Hello matplotlib-users, > > I'm using subplots to make an array of plots, but because some of the plots > have wider y-axis tick labels than others, some of the subplots end up > looking too close to each other. Here's an image that shows what I mean: > >

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 8:44 PM, Jae-Joon Lee wrote: > On Wed, Nov 10, 2010 at 1:01 AM, Jason Grout > wrote: >> Is the tip of the arrow (after the miter join) supposed to hit (1,1), or is >> the center of the line supposed to hit (1,1)? Or maybe the tip of the >> joinstyle='

Re: [Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
On 11/9/10 9:21 AM, Benjamin Root wrote: > I just tested out the patch, and while it did seem to fix the problem for me > on the test script, I am not 100% certain that it is properly lined up > (maybe an off-by-one-pixel error?). Anyway, I tried zooming in to see which > kind of error it was and

[Matplotlib-users] annotate arrow drawn slightly off

2010-11-09 Thread Jason Grout
, but should be right on the line. Any clue about what the problem is? Thanks, Jason -- Jason Grout -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling

Re: [Matplotlib-users] fontList.cache not being updated

2010-10-01 Thread Jason Grout
On 10/01/2010 10:40 AM, Michael Droettboom wrote: >On 10/01/2010 11:31 AM, Jason Grout wrote: >> I'm working on updating matplotlib in Sage to 1.0. We're running into >> a problem where it seems that the fontList.cache is not being updated. >> I've inc

[Matplotlib-users] fontList.cache not being updated

2010-10-01 Thread Jason Grout
I'm working on updating matplotlib in Sage to 1.0. We're running into a problem where it seems that the fontList.cache is not being updated. I've included an example session below. The .matplotlib directory is accessible here: http://sage.math.washington.edu/home/jason/.matplotlib/ The pr

Re: [Matplotlib-users] Making room for tick labels

2010-09-29 Thread Jason Grout
em you're talking about, though. I posted it to the matplotlib-devel mailing list here: http://www.mail-archive.com/matplotlib-de...@lists.sourceforge.net/msg05628.html You're welcome to use it, and if it makes more sense than the FAQ entry, whoever does the FAQ is welcome to include it in

Re: [Matplotlib-users] Order of 3d Plots

2010-09-23 Thread Jason Grout
On 9/22/10 2:55 PM, Lütteke Felix wrote: > Hello, > > > > is there a possibility to order several 3dplots, if all are plotted > in the same figure. If I execute the code below, the higher values > (blue) are covered by the lower (yellow) ones, which seems quite > unlogical to me (see attached imag

Re: [Matplotlib-users] citation of mpl

2010-09-22 Thread Jason Grout
On 09/22/2010 08:59 AM, John Hunter wrote: > On Wed, Sep 22, 2010 at 8:45 AM, Bala subramanian > wrote: >> Friends, >> I have mentioned in my research manuscript that plots were generated by >> 'matplotlib package'. I dnt find the related reference of mpl. Kindly tell >> me how can i site mpl.

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Jason Grout
On 9/17/10 9:08 PM, Fernando Perez wrote: > Hi Luke, > > On Fri, Sep 17, 2010 at 5:49 PM, Dale Lukas Peterson > wrote: >> >> I'm not sure I understand how I would make use of my function then. >> My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then >> the >> level sur

Re: [Matplotlib-users] plotting an arrow outside of the plot does not work any more

2010-08-28 Thread Jason Grout
On 8/28/10 3:59 PM, Stan Schymanski wrote: > Hi JJ, > > Thanks for the advice. However, the annotation_clip=False addition does > not make a difference to me. I am using Matplotlib from within Sage, > though; not sure if this makes it behave differently. > FYI, matplotlib in Sage is still at matp

Re: [Matplotlib-users] spline "smart bounds"

2010-08-16 Thread Jason Grout
ondering if we could take advantage of the "smart bound" feature. It certainly sounded interesting. Thanks, Jason -- Jason Grout -- This SF.net email is sponsored by Make an app they c

[Matplotlib-users] spline "smart bounds"

2010-08-14 Thread Jason Grout
Hi all, First: I noticed in the changelog to 1.0 that a lot of work has gone into splines. Thanks! In particular, I notice commit message "splines and ticks: implement smart bounds" from 20 Dec 2009 (commit 58d31c10eef8648cd0fb81d5c0f0bcd0c05fe9a1 in astraw's github repository, labeled as gi

Re: [Matplotlib-users] ANN: matplotlib 1.0.0

2010-07-06 Thread Jason Grout
On 7/6/10 2:11 PM, John Hunter wrote: > matplotlib 1.0.0 is available for download at > > > https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ > > You can read this announcement with links and rendered figures at > >http://matplotlib.sourceforge.net/users/whats_ne

Re: [Matplotlib-users] Interact with matplotlib in Sage

2010-01-25 Thread Jason Grout
owever, I think we need to resolve the issues involving taking the axes from one figure and adding them to another figure; these issues were brought up on the mailing list a while ago. Thanks, Jason -- Jason Grout jason.gr...@drake.edu

Re: [Matplotlib-users] Venn diagrams

2009-02-19 Thread Jason Grout
Ian Harry wrote: > Hi all, > > Is there any simple way in matplotlib, or in any other python library, to > make a simple Venn diagram, I want to show three events and their > intersections? I have tried googling for any hints but didn't find anything. > > You can use Sage (http://www.sagemath.

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
Jae-Joon Lee wrote: > Hi Jason, > > I did made a similar class sometime ago and I'm attaching it just in > case. I guess it is very similar to yours but I rely on > matplolib.patches.FancyArrow class to draw the arrow head. > > The circle drawn by scatter() command should be a circle with size s

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
Alan G Isaac wrote: > Jason Grout wrote: >> The other problem is a more serious problem for me: how do >> I shorten the line so that it goes between the boundaries >> of the circle instead of the centers, especially when the >> circles are constructed in a scatter pl

Re: [Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
Alan G Isaac wrote: > Jason Grout wrote: >> Another related issue is that width of the path used to draw the >> arrowhead makes the arrow tip go beyond the endpoint; is there a way to >> shorten a line by a certain number of points so that we >> can account for that?

[Matplotlib-users] Arrows using Line2D and shortening lines

2008-08-22 Thread Jason Grout
e for the ArrowLine class is below. If people are interested, I could (eventually, as I have time) incorporate this functionality into the Line2D class (i.e., putting arrowheads on the ends of lines). r""" A matplotlib subclass to draw an arrowhead on a