Re: [Matplotlib-users] Lorenz - solution

2015-03-10 Thread Adam Hughes
That's pretty swag! On Tue, Mar 10, 2015 at 11:49 AM, Benjamin Root wrote: > +1000!! > > Great job! Would you mind if I clean it up a bit and add it to the > mplot3d/animation gallery? Full credit, of course. > > > On Tue, Mar 10, 2015 at 11:30 AM, Prahas David Nafissian < > prahas.mu...@gmail.c

Re: [Matplotlib-users] Corr plot in subplot

2015-03-13 Thread Adam Hughes
All the pandas plots that I've used take an axes keyword so try: c = corrplot.Corrplot(df, ax=ax1) or c = corrplot.Corrplot(df, axes=ax1) Do either of those work? On Fri, Mar 13, 2015 at 2:04 PM, Paul Hobson wrote: > What's the function signature of corrplot.CorrPlot? Hopefully you can pass

[Matplotlib-users] Most generic way to wrap collections

2014-01-07 Thread Adam Hughes
Hi, I am working on a library for image analysis which stores particles as indexed numpy arrays and provides functionality for managing the particles beyond merely image masking or altering the arrays directly. I've already designed classes for many common shapes including Lines/Curves, Circles/E

Re: [Matplotlib-users] Most generic way to wrap collections

2014-01-07 Thread Adam Hughes
keep the geometry (ie line --> mpatch.Line) unless anyone has any better suggestions. Thanks! On Tue, Jan 7, 2014 at 3:08 PM, Adam Hughes wrote: > Hi, > > I am working on a library for image analysis which stores particles as > indexed numpy arrays and provides functional

Re: [Matplotlib-users] Most generic way to wrap collections

2014-01-07 Thread Adam Hughes
arty" and I'll share it pretty soon with the scikit image mailing list. If I am able to get the patches built it, would anyone mind if I share it with the matplotlib list as well? Thanks On Tue, Jan 7, 2014 at 4:10 PM, Joe Kington wrote: > > > > On Tue, Jan 7, 2014 at 2:29

Re: [Matplotlib-users] colorbllind problem

2014-02-17 Thread Adam Hughes
I'm wondering if the matplotlib API is designed in such a way that choosing a color schema could be done at import time. I know that the entire plot style can be changed in one call (eg put plt.xkcd() at the beginning of your code), so I wander if colorblind-compatible colors could be loaded in a

[Matplotlib-users] Not rendering integral/sum when using latex = True

2014-02-28 Thread Adam Hughes
Hi, In an IPython notebook, I've changed several setting in both the notebook's style and the plotting style. I noticed that when I change the usetex option in the rcparams: *rcParams['text.usetex'] = True * Then I add an integral sign as text to a plot (either title or axis label) *plt.title(

Re: [Matplotlib-users] Not rendering integral/sum when using latex = True

2014-02-28 Thread Adam Hughes
Sorry, it seems that I didn't have dvipng installed correctly! On Fri, Feb 28, 2014 at 2:53 PM, Adam Hughes wrote: > Hi, > > In an IPython notebook, I've changed several setting in both the > notebook's style and the plotting style. I noticed that when I change

[Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
Hi, I am making a stacked histogram where one must enter the desired colors together in a list/array when the histogram is called. For certain objects in my code, it's helpful to assign a color to them, so that they are immediately identified across various plots. Therefore, I essentially want t

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
t.append(c) c = axfoo._get_lines.color_cycle.next() # Reset colorcycle for i in range(len(clist) -1): axfoo._get_lines.color_cycle.next() return clist On Wed, Mar 5, 2014 at 2:56 PM, Adam Hughes wrote: > Hi, > > I am making a stacked histogram where one mus

Re: [Matplotlib-users] Access to color cycle?

2014-03-05 Thread Adam Hughes
at 3:07 PM, Andreas Hilboll wrote: > On 05.03.2014 20:56, Adam Hughes wrote:> Hi, > > > > I am making a stacked histogram where one must enter the desired colors > > together in a list/array when the histogram is called. For certain > > objects in my code, it's

[Matplotlib-users] Changing figure background color (through rcparams?)

2014-03-20 Thread Adam Hughes
Hi, I am using an IPython notebook style that has a soft, yellow background that I think is more appealing that white. When I make a plot, I'd like the background of the plot (ie, everything that is outside the x and y axis) to be the same color. I'm trying to change the figure.facecolor paramet

[Matplotlib-users] Variable size markers legend formatting

2014-04-08 Thread Adam Hughes
Hello, I've been searching but can't seem to find this topic addressed (perhaps wrong search terms) Simply put, I have a scatter plot with variable size markers, and I'd like to have the markers all be a single size in the legend. Is there a standard way to do this? Thanks.

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

2014-04-09 Thread Adam Hughes
sts.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 topic addressed (perhaps > wrong search terms) > > > > Simply put, I have a scatter plot with v

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

2014-04-09 Thread Adam Hughes
Thanks Paul, I will try it out. On Wed, Apr 9, 2014 at 12:21 PM, Paul Hobson wrote: > > > > On Wed, Apr 9, 2014 at 9:00 AM, Adam Hughes wrote: > >> Thanks. That's probably the way I'll go. At first, I thought creating >> separate legend markers and rem

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

2014-04-11 Thread Adam Hughes
Hi Paul, I tried out the legend proxy artist, and it works for rectangles in the legend, but I can't seem to get a Circle to appear in the legend, which I presume should be: p = Circle((0, 0), fc="r") legend([p], ["Red Rectangle"]) On Wed, Apr 9, 2014 at 2:20 PM, Adam

Re: [Matplotlib-users] removing a plot from an axes

2014-04-18 Thread Adam Hughes
This will clear the figure: plt.clf() Is this what you're looking for, or just to pop one plot form the stack? On Fri, Apr 18, 2014 at 6:21 PM, Michael Mossey wrote: > Sorry for what is a beginnerish question but I'm having a hard time using > the docs. I want to remove a previous plot from a

Re: [Matplotlib-users] Wireframe with no cstrides?

2014-09-20 Thread Adam Hughes
On Sat, Sep 20, 2014 at 7:31 PM, Adam Hughes wrote: > Hi, > > I was using wireframe to plot my spectroscopy data, and noticed if I > choose a large R-stride, I somewhat unexpectedly get this really helpful > evenly spaced spectral plot (attached). > > The only issue is that

Re: [Matplotlib-users] Wireframe with no cstrides?

2014-09-22 Thread Adam Hughes
, Benjamin Root wrote: > I think you can just set the linewidth to zero like in these examples: > > http://matplotlib.org/examples/mplot3d/surface3d_demo.html > http://matplotlib.org/examples/mplot3d/surface3d_demo3.html > > Cheers! > Ben Root > > On Sat, Sep 20, 2014 at 7:4

Re: [Matplotlib-users] Wireframe with no cstrides?

2014-09-22 Thread Adam Hughes
gs were fixed for v1.4.0, but there were > a few additional bugs that are going into the upcoming v1.4.1 release. > > Cheers! > Ben Root > > On Mon, Sep 22, 2014 at 12:29 PM, Adam Hughes > wrote: > >> Thanks benjamin. Not sure how I overlooked this! >> >> Y

[Matplotlib-users] Getting the projection of an axis

2014-09-23 Thread Adam Hughes
Hello, Is it possible to inspect an AxesSubplot object and infer if it is using a 3d projection or not? Couldn't figure it out directly from the API. Thanks -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analy

[Matplotlib-users] Transferring an Axes Subplot to a projection on a 3d plot

2014-09-24 Thread Adam Hughes
Hi, Sorry for all of these left-field questions. We are trying to develop some custom functionality for a spectroscopy program... Given a 3d surface plot, matplotlib makes it easy to add contours along the projections of the plot. http://matplotlib.org/1.3.1/mpl_toolkits/mplot3d/tutorial.html#d

[Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
Hi, I'm following up on an answered stack overflow thread: http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same

Re: [Matplotlib-users] Getting the projection of an axis

2014-09-24 Thread Adam Hughes
x27;3d')) > >>> ax.name > '3d' > > > You can do this with any axes type, such as polar axes and such. > > Cheers! > Ben Root > > > On Tue, Sep 23, 2014 at 3:26 PM, Adam Hughes > wrote: > >> Hello, >> >> Is it possibl

Re: [Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
end a free moment on it. > > Ben Root > > On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes > wrote: > >> Hi, >> >> I'm following up on an answered stack overflow thread: >> >> >> http://stackoverflow.com/questions/24909256/how-to-obtain-

Re: [Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
https://github.com/matplotlib/matplotlib/issues/3562 On Wed, Sep 24, 2014 at 6:17 PM, Adam Hughes wrote: > Agreed. I will do so, thanks. If you are able to figure it out, I would > be super grateful. I must have spend 5 hours beating my head over this... > > I'll fill it ou

Re: [Matplotlib-users] Diplaying 2D images in mplot3d

2014-10-01 Thread Adam Hughes
Instead of learning VTK, you may find it easier to start with Mayavi 2 (written on VTK). On Wed, Oct 1, 2014 at 2:27 PM, Fabrice C. wrote: > Dear Ben, > > Thank you for the explanation. Too bad mplot3d cannot display textured > polygons. > I did have a look at glumpy and it does part of what I

Re: [Matplotlib-users] 2 overlaid plots with grid??

2014-10-21 Thread Adam Hughes
I wrote a program that draws grids manually on mpl plots a while back. If you can't find a solution can you write back here and I'll try to get that dusted off? On Oct 21, 2014 2:39 PM, "Benjamin Root" wrote: > Well, the first part is easy... it is called twinx(). If you look up axis > twinning

[Matplotlib-users] axes3d.get_test_data; where else is test data?

2014-11-06 Thread Adam Hughes
Hi, I recently noticed the method: axes3d.get_test_data() I was curious if other test/sample data is available somewhere in matplotlib, for demo purposes? Or if this is the only sample dataset in the library? Not just for 3dplots but for any plot type... Sorry if I'm overlooking the obvio

Re: [Matplotlib-users] Defaults?

2014-11-07 Thread Adam Hughes
I use a config file in ipython notebooks that sets some parameters of the ipython notebook and then sets the matplotlib defaults. http://nbviewer.ipython.org/github/hugadams/pyuvvis/blob/master/examples/Notebooks/NBCONFIG.ipynb Then I use in all subsequent analysis in the ipython notebook: http:

Re: [Matplotlib-users] axes3d.get_test_data; where else is test data?

2014-11-10 Thread Adam Hughes
Thanks! On Nov 7, 2014 3:39 PM, "Thomas Caswell" wrote: > Take a look at matplotlib.cbook.get_sample_data. > > That said, I don't think an _axes_ object should have such a function and > axes3d.get_test_data() should be removed. > > Tom > > On Thu Nov 06 2