[Matplotlib-users] Bar plot align right?

2015-03-05 Thread J. Daniel Fenn
The bar plot options allow you to set align='center' or align='edge' But when it aligns on the edge, it always does left align. I can't find any documentation that allows me to align it as a right align. Is this possible?

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-14 Thread Daniel Mader
ah, should have been: ax1.grid() ax2.grid() ax1.yaxis.grid(False) -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ M

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-14 Thread Daniel Mader
Hi Paul, thanks for your efforts, I've figured it out by myself by now, with you pieces of code: ax1.grid() ax2.grid() ax1.xaxis.grid(False) does the trick :) -- This SF.net email is sponsored by Windows: Build for Wind

Re: [Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Daniel Mader
Hi Paul, I've modified your suggestion a little, since I don't want a grid for the primary axis at all -- unfortunately to no avail, i.e. no grid line at all: import numpy import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt datax = numpy.arange(50) data1 = numpy.sin(data

[Matplotlib-users] full grid for 2nd y-axis wit twinx() ?

2013-06-13 Thread Daniel Mader
Hi, I need a twinx() plot with horizontal and vertical grid lines for the second axis, just like the usual grid for the first axis. I don't need or want to specify the ticks manually, though! My example code just produces horizontal lines: import pylab datax = pylab.arange(50) data1 = pylab.s

Re: [Matplotlib-users] mathtext and fonts under Windows 8

2013-01-17 Thread Daniel Hyams
> > > But the thing that bothers me about this error is that it only occurs if I > try to mix mathtext and non-matplotlib font. So matplotlib finds Arial > just fine. And it finds the mathtext font fine. Only the mixture is > fatal. It's as if the parser loses track of the Arial font, or it loo

Re: [Matplotlib-users] mathtext and fonts under Windows 8

2013-01-12 Thread Daniel Hyams
- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn mo

Re: [Matplotlib-users] finding the bounding box of an arbitrary artist

2013-01-01 Thread Daniel Hyams
ave a consistent interface as defined by the base class? On Dec 30, 2012 1:00 AM, "Michael McNeil Forbes" < michael.forbes+pyt...@gmail.com> wrote: > On 7 Oct 2011, at 4:56 PM, Daniel Hyams wrote: > > I'm wanting to highlight the artist under the cursor with a transparent

Re: [Matplotlib-users] uniqueness of polar coordinates (meaningfulness of r<0)

2012-12-17 Thread Daniel Hyams
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers &g

Re: [Matplotlib-users] Problem with contains() on an arrow

2012-09-15 Thread Daniel Hyams
Bump for this topic; I'd still love to know what the right thing is to do here. On Mon, Aug 20, 2012 at 10:08 PM, Daniel Hyams wrote: > Hmm, I just found out that if I change path.Path.contains_point to use > "point_on_path" instead of "point_in_path", the co

[Matplotlib-users] sharex with different tick labels

2012-09-13 Thread Daniel Welling
Greetings, all. I have an issue: I have several axes stacked in a column with a common time vector on each x-axis. Each plot is a contour, so overplotting is not an option. In a perfect world, I want the following: 1) The subplots are tightly spaced such that with ax.grid() activated, the grid l

Re: [Matplotlib-users] Problem with contains() on an arrow

2012-08-20 Thread Daniel Hyams
sting for literally being on the "stroke"? If so, do we have to make sure that the proper one is called if there are no polygons involved in the path? On Mon, Aug 20, 2012 at 9:28 PM, Daniel Hyams wrote: > I've run into a strange problem with contains() on an arrow; there is a

[Matplotlib-users] Problem with contains() on an arrow

2012-08-20 Thread Daniel Hyams
ack a STOP onto the end of the path, but that resulted in the same behavior. Can anyone else confirm this behavior? matplotlib 1.1.1 is what I'm using. Seen on both Windows, Linux, and OSX. -- Daniel Hyams dhy...@gmail.com arrow_contains_test.py Descripti

Re: [Matplotlib-users] FancyBBox set_width

2012-08-19 Thread Daniel Hyams
ill cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _____

Re: [Matplotlib-users] FancyBBox set_width

2012-08-19 Thread Daniel Hyams
IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net &

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-12 Thread Daniel Hyams
-- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint s

[Matplotlib-users] How to compile under windows?

2012-07-11 Thread Daniel Hyams
I looked around in the docs a bit but didn't find anything...is there a guide / set of recommended practices when trying to build matplotlib from source on Windows? -- Daniel Hyams dhy...@gmail.com -- Live Sec

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
; > > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpo

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
to the networkx authors. On Wed, Jul 11, 2012 at 1:02 PM, Daniel Hyams wrote: > To get rid of the networkx dependency, I just replaced my_plot() with this: > > def my_plot(figure): > figure.clear() > axes = figure.add_subplot(1,1,1) > axes.plot([0,1,2],[2,3,4]) >

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
cussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______ > Matplotlib

[Matplotlib-users] Plot line/Line2D with edgecolor

2012-06-27 Thread Daniel Platz
could not find anything. Has someone an idea? Thanks in advance Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT man

Re: [Matplotlib-users] sample to contribute to mpl gallery

2012-03-20 Thread Daniel Hyams
Oops, one thing about the graph that I forgot to point out...does the antialiasing look a little funny? It seems a bit inconsistent, especially as the line goes flat. I increased the line width in an effort to make it less obvious; is there some other way to improve this behavior? --

[Matplotlib-users] Selecting a color from a given color map.

2012-02-16 Thread Daniel Welling
Greetings. I have a series of lines that I would like to plot on the same axis, but I would like to set the color of each such that the range of colors used progresses through a given color map (e.g. the default Jet map.) For example, if I have 7 lines, the first would use the first most color fr

Re: [Matplotlib-users] How to plot Chebyshev polynolmials

2012-01-10 Thread Daniel Hyams
ebitchev polynomial. > > 2012/1/10 Daniel Hyams : > > I think that you're misusing Chebyshev (do you really only want to give > "3" > > as a coefficient..which is just the constant function 3), and you have to > > evaluate it in order to give matplotlib some x

Re: [Matplotlib-users] How to plot Chebyshev polynolmials

2012-01-10 Thread Daniel Hyams
- > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportun

Re: [Matplotlib-users] cycling mechanism

2012-01-05 Thread Daniel Hyams
- > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than

Re: [Matplotlib-users] collections?

2011-12-11 Thread Daniel Hyams
m) add the collection. On Fri, Dec 9, 2011 at 5:27 PM, Tony Yu wrote: > > On Fri, Dec 9, 2011 at 5:23 PM, Tony Yu wrote: > >> >> >> On Fri, Dec 9, 2011 at 4:11 PM, Daniel Hyams wrote: >> >>> I'm sorry, I should have stated the version. I'm u

Re: [Matplotlib-users] collections?

2011-12-09 Thread Daniel Hyams
I'm sorry, I should have stated the version. I'm using 1.0.0, which just returns a list of rectangle artists. On Fri, Dec 9, 2011 at 4:08 PM, Benjamin Root wrote: > On Fri, Dec 9, 2011 at 2:55 PM, Daniel Hyams wrote: > >> Tried, but unfortunately it did not make any diff

Re: [Matplotlib-users] collections?

2011-12-09 Thread Daniel Hyams
Tried, but unfortunately it did not make any difference :( On Fri, Dec 9, 2011 at 2:22 PM, Tony Yu wrote: > > > On Fri, Dec 9, 2011 at 2:13 PM, Daniel Hyams wrote: > >> I can't tell if I'm misusing collections here, or if there is a bug. >> Anyway, what I

[Matplotlib-users] collections?

2011-12-09 Thread Daniel Hyams
This appears to work at first blush, but if you resize the plot, you can tell that the rectangles are just fixed in their location now. I tried messing around with setting the transform for the new collection object "coll" in different ways, to no avail. Any suggestions welcome ;)

Re: [Matplotlib-users] [ploting data] Live data

2011-12-02 Thread Daniel Hyams
his script > # with the same return code of Qt application > sys.exit(qApp.exec_()) > > > ------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers

[Matplotlib-users] Triangulations and Polar Plots

2011-11-14 Thread Daniel Welling
Greetings. I recently found myself in the position of needing to plot polar, irregularly spaced data. I've done similar using regularly spaced values with no problem. However, I've found that when the points become greatly scattered, the triangulation does not translate from rectangular to polar

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
It's not "official", but just idiomatic, I suppose ;) http://en.wikipedia.org/wiki/Monkey_patch http://paulirish.com/2010/duck-punching-with-jquery/ > > Is that an official term? I have done things like this before, but never had > a word for it. > > Ben

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
here is no bit-mapped representation of > a contour object? It's not really that, it's just that the animation class expects to be given a list of Artists to work with (the original author can correct me if I'm wrong), and that's not what it is being given, because a QuadContourSet is no

[Matplotlib-users] Triangulation objects

2011-11-13 Thread Daniel Welling
Greetings. I am interested in accessing Triangulation objections that are created by MPL for tricontour-type plots. The docs for MPL routines that use triangulation objects refer to documentation, but none exists in the MPL online docs. Does anyone have docs/info on using these objects? Having

Re: [Matplotlib-users] Updating/drawing all axes.

2011-11-13 Thread Daniel Welling
, it should be a mac Framework install of python. Again, this problem did not manifest until MPL 1.1.0. Thanks for your help. -dw On Sun, Oct 30, 2011 at 10:06 AM, John Hunter wrote: > .draw() > > On Sun, Oct 30, 2011 at 10:51 AM, Daniel Welling > wrote: > > Greetings, Mat

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
Oops; my sentence should have read "is *not* derived from an artist". On Sun, Nov 13, 2011 at 1:24 PM, Benjamin Root wrote: > > > On Sunday, November 13, 2011, Daniel Hyams wrote: >> This looks like a bug in matplotlib to me; I get the same thing. >> >> The

Re: [Matplotlib-users] Matplotlib 1.1.0 animation vs. contour plots

2011-11-13 Thread Daniel Hyams
This looks like a bug in matplotlib to me; I get the same thing. The basic issue is that QuadContourSet is derived from an artist, and so does not have all of the artist methods; the animation framework depends on the things that it is animating being artists. The following monkey patch fixes it

Re: [Matplotlib-users] Build MPL with VS 2008 problem

2011-11-02 Thread Daniel Hyams
+--+ > > > -- > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > ___ > Matplotlib-users mailing list >

Re: [Matplotlib-users] Loading txt files

2011-11-01 Thread Daniel Hyams
___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Daniel Hyams dhy...@gmail.com ---

Re: [Matplotlib-users] cmap normalization question

2011-10-31 Thread Daniel Hyams
w supports Android™ Apps > for the BlackBerry® PlayBook™. Discover just how easy and simple > it is! http://p.sf.net/sfu/android-dev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sour

[Matplotlib-users] Updating/drawing all axes.

2011-10-30 Thread Daniel Welling
Greetings, MatPlotLibbers. Since 1.1, pyplot.draw() in interactive mode only updates the current axis. If I want to update many axes, I need to use sca() and draw() for each one. Is there a way to update all axes? Thanks. -dw -

Re: [Matplotlib-users] matplotlib.axes.Axes.arrow not producing nice arrows

2011-10-27 Thread Daniel Hyams
omplimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net >

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-22 Thread Daniel Hyams
Michael: I commented on the patch here: https://github.com/matplotlib/matplotlib/issues/545 In short...it works! -- The demand for IT networking professionals continues to grow, and the demand for specialized networking

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Daniel Hyams
> Thanks for clarifying.  I understand what you're saying now.  I think > what we want to do is store the unmultiplied alpha as a "canonical" > version of the image, and premultiply a copy (or use some C++ iterator > magic to avoid the copy) right before sending it off to Agg.  Then the > alpha can

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-21 Thread Daniel Hyams
remultiplied in at the latest possible moment. Thanks for all of the help with this Mike, Daniel On Fri, Oct 21, 2011 at 9:31 AM, Michael Droettboom wrote: > Thanks for looking into this deeper. > > Agg requires image buffers to be premultiplied, as described in the third > bullet point

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-20 Thread Daniel Hyams
lter_rgba.h, rebuilding matplotlib, and replacing _image.so/_image.pyd and _backend_agg.so/_backend_agg.pyd does the trick (along with passing straight alphas). So far, I've seen no ill effects on any of my plots, but I'm also not in a position to run the pixel-by-pixel comparison matplotlib tes

Re: [Matplotlib-users] strange behavior of images when they have an alpha channel [resend]

2011-10-19 Thread Daniel Hyams
a blending properly in the > image class, then the user wouldn't have to deal with such details.  A bug > should probably be filed in the matplotlib issue tracker for this. > > Mike > > On 10/19/2011 12:23 PM, Daniel Hyams wrote: > > [Sorry, I keep getting tripped up wit

[Matplotlib-users] Small bug in XAxis.contains() and YAxis.contains()

2011-10-08 Thread Daniel Hyams
The pick radius for the X and Y axis artists are one-sided; is that intentional? Original (in class XAxis), file axis.py: def contains(self,mouseevent): """Test whether the mouse event occured in the x axis. """ if callable(self._contains): return self._contains(self,m

[Matplotlib-users] finding the bounding box of an arbitrary artist

2011-10-07 Thread Daniel Hyams
hat the "hitbox" is being calculated on the fly in XAxis.contains(). -- Daniel Hyams dhy...@gmail.com -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitiv

Re: [Matplotlib-users] XRC or Pythoncard

2011-09-20 Thread Daniel Hyams
_ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Daniel Hyams dhy...@gmail.com

[Matplotlib-users] bug report and fix for bracket arrow (annotations)

2011-09-16 Thread Daniel Hyams
# flip these arguments widthA=widthA, lengthA=lengthA, angleA=angleA ) -- Daniel Hyams dhy...@gmail.com -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.s

[Matplotlib-users] draggable annotation bug and fix

2011-09-15 Thread Daniel Hyams
on.textcoords = "figure pixels" self.update_offset(0.0,0.0) # <--- add this! It might be sufficient to just set self.annotation.xytext to self.ox,self.oy instead of calling update_offset like I did

Re: [Matplotlib-users] Suggestion for annotation arrow clipping

2011-09-14 Thread Daniel Hyams
You are correct JJ; the annotation_clip=False attribute was exactly what I was after, but somehow missed it in the docs :(. On Wed, Sep 14, 2011 at 9:09 PM, Jae-Joon Lee wrote: > On Mon, Sep 12, 2011 at 3:20 AM, Daniel Hyams wrote: >> I would suggest the following modifi

[Matplotlib-users] Suggestion for annotation arrow clipping

2011-09-11 Thread Daniel Hyams
self.arrow_patch.set_clip_box(self.axes.bbox) # CHANGEME (new line) self.arrow_patch.draw(renderer) Text.draw(self, renderer) -- Daniel Hyams dhy...@gmail.com -- Using storage to extend the benefi

[Matplotlib-users] exception in hit testing with log scale axes [resend]

2011-09-09 Thread Daniel Hyams
1.0.1, on both Linux and Windows. -- Daniel Hyams dhy...@gmail.com hitlist_problem.py Description: Binary data -- Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlin

[Matplotlib-users] exception in hit testing with log scale axes

2011-09-09 Thread Daniel Hyams
g seems to work. However, being unfamiliar with the code, I'm not sure what else that might break, or how bad of an idea swallowing the exception is here. I have attached a small demo code. The error occurs in matplotlib 1.0.0 and matplotlib 1.0.1, on both Linux and Windows.

Re: [Matplotlib-users] [matplotlib-devel] Calling all Mac OSX users!

2011-08-21 Thread Daniel O'Connor
u MacPorts maintainers :) sudo port install py27-matplotlib Obviously that doesn't help when building a dev version, although you can build out of tree ports. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about

Re: [Matplotlib-users] plot duration given format of '3:04:02.994000'

2011-07-18 Thread Daniel Mader
hat should work, and you can always transform this into some common unit, e.g. seconds etc. Hope it helps, Daniel 2011/7/17 C M : > This a time duration in my database:  '3:04:02.994000' (i.e., 3 hrs, 4 > min, 2 sec and 994 microsec).  It's a string. > > Is there a way to

Re: [Matplotlib-users] Homepage gallery axis labels

2011-06-28 Thread Daniel Mader
> Yes, it is a known problem, and it is by design.  However, the OP has a good > point that the gallary should have nice-looking plots.  Therefore, it would > make sense to modify those really bad examples with subplot_adjust() to > allow them to look better. Very much agreed :) -

Re: [Matplotlib-users] Homepage gallery axis labels

2011-06-28 Thread Daniel Mader
Hi, this is a known problem when working with subplots, reducing the figure size or increasing the font size. It is like that by design but there are workarounds. http://old.nabble.com/Feature-request%3A-automatic-scaling-of-subplots,-margins,-etc-td31556961.html http://old.nabble.com/faq%3A-redu

Re: [Matplotlib-users] Not able to access CSV file:

2011-06-11 Thread Daniel Mader
> *Hi Daniel, * > * * > *I used the code but there is small issue. I forgot to mention that my > values are signed and unsigned decimal values. * > *My values look like this > * > 0.0023 -0.0456 0.0419 0.094 -0.0004 0.0236 -0.0237 -0.0043 -0.0718 > 0.0095 0.0592 -0.0417

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
;, '\usepackage{sfmath}', '\usepackage{gensymb}', '\usepackage{amsmath}', ] Thanks a lot for clarification! 2011/6/9 Stan West : >> From: Daniel Mader [mailto:danielstefanma...@googlemail.com] >> Sent: Thursday, June 09, 2011 11:59 >> >> Hi,

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
I also use LaTeX with utf8 input encoding (and imho the required preamble is fully OK since it is 100% LaTeX) when generating PDF graphics -- but I do that only on a Linux box, so I can't verify for Windows... 2011/6/9 Klonuo Umom : > AFAIK I used this when working LaTeX in UTF-8: > ==

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
Hi, I just noticed this doesn't work here, too, as I expected :( with u'äöüß°€' I can print the string, but the labels are still broken in the plot: # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot([1,2,3,4]) xlabel = r'öäüß°€' plt.xlabel(xlabel) plt.show() plt.savefig('asdf')

Re: [Matplotlib-users] How to use UTF-8 for labels on Windows XP?

2011-06-09 Thread Daniel Mader
Hi, try putting an r in front of your string: e.g. label=r'äöü߀' And it might help to tell your editor the used encoding, too, by putting this as the first line: # -*- coding: utf-8 -*- Hope this helps, Daniel 2011/6/9 Klonuo Umom : > Hi, > > How can I use font in my locale

Re: [Matplotlib-users] imshow() with colorbar and custom range?

2011-06-08 Thread Daniel Mader
, 0.5, 0.02]) fig.colorbar(im2, cax, orientation='horizontal') Ideally, I'd need to create a new subfig 313 with a much reduced height. Either way, you helped me a lot! 2011/6/7 Eric Firing : > On 06/07/2011 01:37 AM, Daniel Mader wrote: >> >> Hi Eric, >> >

Re: [Matplotlib-users] imshow() with colorbar and custom range?

2011-06-07 Thread Daniel Mader
in(), vmax=dat.max()) im2.set_norm(norm) fig.colorbar(im2) ## doesn't really work :/ cax = fig.add_axes([0.25, 0.04, 0.5, 0.02]) fig.colorbar(im2, cax, orientation='horizontal') pylab.show() Thanks a lot, best regards, Daniel ---

[Matplotlib-users] imshow() with colorbar and custom range?

2011-06-06 Thread Daniel Mader
nt, I hope it helps to make my problem clearer... Thanks and best regards, Daniel import pylab #import matplotlib as mpl import matplotlib.cm as cm # colormaps #import matplotlib.colors as col # colormaps pylab.close('all') dat = pylab.array([[1,2,3,4],[5,6,7,8]]) datT = dat/2 fig = pyla

Re: [Matplotlib-users] Not able to access CSV file:

2011-06-04 Thread Daniel Mader
what you want. Now, please take the time and work through the example that I have provided. In case you need further help, please don't start a new thread but reply to this one. Best regards, Daniel # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import pylab import scipy

Re: [Matplotlib-users] mpl newbie question...

2011-05-30 Thread Daniel Mader
get answers then. Best of luck -- and be assured that Python/Scipy/Numpy/Matplotlib is indeed a perfect toolbox for astonishing, professional and versatile data processing and plotting. I am using it for everything, from simple calculations to severe data reduction and scientific plotting. Daniel

Re: [Matplotlib-users] Not able to access CSV file:

2011-05-30 Thread Daniel Mader
range of e.g. rows 3 to 6 is range36 = a1[2:6] Please have a look here for getting started with scipy/numpy: http://pages.physics.cornell.edu/~myers/teaching/ComputationalMethods/python/arrays.html and http://www.scipy.org/NumPy_for_Matlab_Users Hope this helps, Daniel 2011/5/27 Karthikraja

Re: [Matplotlib-users] Not able to access CSV file:

2011-05-25 Thread Daniel Mader
Hi, firstly, I do not fully understand why you have chosen such a complicated solution to a rather simple problem. If the data in your file really is like the example then you could simply put the file 'ch1.csv' into the same directory as your Python script. I have slightly modified it (I don't l

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Daniel Mader
27;ll consider how things can be improved. I do sense a match of ideas here :) This is exactly what I am missing! It is very good to hear that you are so open to suggestions and possible improvements! It is a great pleasure to work with Scipy/Matplotlib and interact with the community! Best reg

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-11 Thread Daniel Mader
ikely that even simple figures look horrible. I'd definitely vote for a more end-user friendly solution (with end users I have scientific users in mind who generally appreciate the beauty of the generated plots but who don't integrated the library into some other application). Best regards, D

Re: [Matplotlib-users] incremental colors for lines

2011-05-10 Thread Daniel Mader
pt Exception, e: print e break Thanks in advance, Daniel >> I have found a simple and better way. One can chose from colors from a >> color >> map: >> >> >>import pylab as pl >> >>import matplotlib.cm as cm >> >>xval = p

Re: [Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Daniel Mader
Very nice, will try this asap! Many thanks! 2011/5/6 Tony Yu : > > On Fri, May 6, 2011 at 5:55 AM, Chris Rodgers > wrote: >> >> The real solution of course is to calculate exactly where every piece >> of text actually is, detect overlaps, and adjust. That is certainly >> beyond my ability or inc

[Matplotlib-users] Feature request: automatic scaling of subplots, margins, etc

2011-05-06 Thread Daniel Mader
st the figsize but the results are still far from being adorable. The spacing around the sublplots increases for no apparent reason while the spacing between the subplot remains the same so that everything looks cramped...

Re: [Matplotlib-users] Increase max polygons/patches

2011-04-21 Thread Daniel Welling
While trying to recreate this outside of my work code, I found that I cannot do it in a simple manner- that is, just creating a ton of points and plotting them doesn't reproduce the problem. I'm going to revisit this and make sure it isn't a problem in my working program versus what I thought it w

[Matplotlib-users] Increase max polygons/patches

2011-04-21 Thread Daniel Welling
Greetings, MPL Users. I have a very detailed array that I am visualizing using pcolor mesh. When the size of the array surpasses some threshold (I don't know the value), pcolormesh stops drawing polygons/patches. Thus, I only see some percentage of my array. Is there a way to increase the numbe

Re: [Matplotlib-users] Qt4 on OSX

2011-03-24 Thread Daniel Welling
plementing > interactive/non-interactive usage for the MacOSX backend. > > Thanks, > --Michiel. > > --- On *Wed, 3/23/11, Daniel Welling * wrote: > > > From: Daniel Welling > Subject: Re: [Matplotlib-users] Qt4 on OSX > To: "Michiel de Hoon" > Cc: matplo

Re: [Matplotlib-users] Qt4 on OSX

2011-03-23 Thread Daniel Welling
my weapon of choice... On Mon, Mar 21, 2011 at 7:14 AM, Michiel de Hoon wrote: > --- On *Sun, 3/20/11, Daniel Welling * wrote: > > The OSX backend used to have a bug where you cannot type a > > name in the file name text box.Since that has been fixed, ... > That was not a bug

Re: [Matplotlib-users] Qt4 on OSX

2011-03-20 Thread Daniel Welling
dw On Sun, Mar 20, 2011 at 1:31 AM, Michiel de Hoon wrote: > --- On *Wed, 3/16/11, Daniel Welling * wrote: > > After playing with backends quite a bit, I have found that the best one in > terms of speed, robustness, and features is Qt4Agg - especially on OSX, > where the MacOSX back

[Matplotlib-users] Qt4 on OSX

2011-03-16 Thread Daniel Welling
Greetings, MPL'ers. After playing with backends quite a bit, I have found that the best one in terms of speed, robustness, and features is Qt4Agg - especially on OSX, where the MacOSX backend is buggy and many others just don't plain work. To my great disappointment, I have found that this backen

Re: [Matplotlib-users] automatic format of y-axis limits for small changes with large offset

2011-03-11 Thread Daniel Mader
03/10/2011 01:13 AM, Daniel Mader wrote: >> Maybe I should mention that there are actually two reasons why I don't >> like this behavior: >> >> 1) it's sometimes very hard to read what's going on, >> 2) there also seems to be a bug when the limits are ch

Re: [Matplotlib-users] automatic format of y-axis limits for small changes with large offset

2011-03-11 Thread Daniel Mader
) ## modify the limits ax2.set_ylim((y1/2., y2/2.)) ax2.figure.canvas.draw() ax1.callbacks.connect("ylim_changed", update_ax2) ax1.ticklabel_format(useOffset=False, axis='y') ##-- pylab.show(

[Matplotlib-users] alpha bug in Polygon

2011-03-10 Thread Daniel Hyams
And then there is no fill as expected, but the edge is now dark black again instead of being light due to the alpha of 0.1. -- Daniel Hyams dhy...@gmail.com -- Colocation vs. Managed Hosting A question and answer guide

Re: [Matplotlib-users] automatic format of y-axis limits for small changes with large offset

2011-03-10 Thread Daniel Mader
Hi Ben, thanks a lot, this really helpes in the simple example, I'll try to find out how to use it in the complex script. It seems 1.0.0 is recent enough for this! Thanks again, Daniel 2011/3/10 Benjamin Root : > > > On Thu, Mar 10, 2011 at 4:54 AM, Daniel Mader > wrote: >

[Matplotlib-users] automatic format of y-axis limits for small changes with large offset

2011-03-10 Thread Daniel Mader
-limits as (0,1) with respect to 106. This makes it very hard to read. I'd like to be able to configure this manually. Thanks in advance, Daniel -- Colocation vs. Managed Hosting A question and answer guide to determ

Re: [Matplotlib-users] cannot print out .eps figures

2011-03-02 Thread Daniel Mader
Hi, have you tried to print the EPS without putting it into a DOC? Is there a specific reason for why you don't use an PNG for that task? Can Word print EPS at all? Best, Daniel 2011/3/1 Zhaoru Zhang : > Hi, > > I created an eps figure file with matplotlib. I can look at it via

Re: [Matplotlib-users] faq: reducing figure.figsize cuts off labels and tick marks

2011-02-26 Thread Daniel Mader
fix this? And I *really* think this should work automatically. As a compromise, maybe an rcParam would help in order to keep the current dumb behavior... Thanks in advance, Daniel import matplotlib.pyplot as plt import matplotlib.transforms as mtransforms fig = plt.figure(figsize=(5,3)) ax

Re: [Matplotlib-users] faq: reducing figure.figsize cuts off labels and tick marks

2011-02-25 Thread Daniel Mader
There is the one in the code, as suggested on the FAQ site :) >> thanks for pointing out the rcParams solution! For the time being, >> this seems an OK approach. I'd like to use the automatic solution, >> though > > There isn't one.

Re: [Matplotlib-users] faq: reducing figure.figsize cuts off labels and tick marks

2011-02-25 Thread Daniel Mader
wer') ax.plot(x,y) labels = ax.get_yticklabels() fig.canvas.mpl_connect('draw_event', on_draw) fig.savefig('example_mpl-ticker_2') 2011/2/25 Darren Dale : > On Tue, Feb 22, 2011 at 4:23 AM, Daniel Mader > wrote: >> Hi, >> >> there has been a similar question recently

Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Daniel Mader
Hi Waléria, you should try to figure out the docstring help :) In a terminal (IDLE or IPython), just do import matplotlib matplotlib.errobar? This will show you extensive help on the command. You will also need to compare with the regular plot command: matplotlib.plot? Best regards, Daniel

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Daniel Mader
! Thanks, Daniel 2011/2/22 Waléria Antunes David : > I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing. See > my code: http://pastebin.com/Jt3BTp0C (line 14) > > See my image generated - attached. > > thanks, > > On Tue, Feb 22, 2011 at 9:37 AM, Mike Kaufm

[Matplotlib-users] faq: reducing figure.figsize cuts off labels and tick marks

2011-02-22 Thread Daniel Mader
igure? An example follows to demonstrate, thanks in advance, Daniel import numpy,pylab,matplotlib.ticker as mtick x = numpy.linspace(0,10,1000) y = numpy.exp(x) pylab.rcdefaults() fig = pylab.figure() ax = fig.add_subplot(111) ax.set_yscale('log') ax.yaxis.set_major_formatter(mtick.Fo

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-21 Thread Daniel Hyams
Thanks Eric! On Sun, Feb 20, 2011 at 9:02 PM, Eric Firing wrote: > On 02/20/2011 06:17 AM, Daniel Hyams wrote: >> >> The function "clabel" does not allow the use of formatters for the >> label; this small patch enables their use, so that one can pass in any >>

[Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-20 Thread Daniel Hyams
there is only a two line change, but it does enable formatters. Perhaps one of the devs can put this in? -- Daniel Hyams dhy...@gmail.com -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pin

Re: [Matplotlib-users] yellow green blue colormap

2011-02-13 Thread Daniel Hyams
ing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Daniel Hyams dhy...@gmail.com -- The ultimate all-in-one performance toolkit: Intel(R) Paral

Re: [Matplotlib-users] a function to prevent "overdraw" of minor ticks/gridlines

2011-02-11 Thread Daniel Hyams
This is a slightly updated version of the script that uses subplots instead of making you pop two windows, which doesn't seem to work like I wanted it to on all systems. None of the code that does the locating has changed; only the demonstration part. -- Daniel Hyams dhy...@gmai

  1   2   3   >