[Matplotlib-users] A very simple wrapper of part of the 2D plot functions in matplotlib
Dear all, When I start to make the plots for my first publication of my PhD study. I use the plot command to make some line and scatter plots, then I find myself want to have some scatter plot as well, and I want to change some of the scatter points colors. And probably later I want bar plots So I find it taking me 3 hours to change the underlying code just to change a plot type of the same data. Don't know others have the same issue Then I started to write some small functions with the idea of like data centered plotting, it wraps some of the maplotlib functions in a STUPID, SIMPLE yet flexible way. The idea is not for large scale production purpose, but for a quick-look of the data with some intermediate-stage of easthetic, for a rather small amount of data. So I ended with a small library of which I called Pdata. (short for PlotData, which means data centered plotting functions). I don't know if others have similar demand. However I put it here to just have some comments from you. You're invited to spend 5mins on this small ipython notebook: https://gist.github.com/ChaoYue/5494557 use http://nbviewer.ipython.org/ to check it. cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] black and hatched legend handle
You need to create a new handler. I guess the code below is close to what you want. I hope this helps. http://nbviewer.ipython.org/5495680 Regards, -JJ On Wed, May 1, 2013 at 5:24 AM, mgurling magurl...@gmail.com wrote: I'm trying to make a legend handle that is half black and half hatched. I've tried ... ... rpos1 = ax.bar(ind, pos1, width, color='k', label='+1') rneg1 = ax.bar(ind, neg1, width, color='w', hatch='///', label='-1') rpos2 = ax.bar(ind, pos2, width, color='w', label='+2') rneg2 = ax.bar(ind, neg2, width, color='w', label='-2') handles, labels = ax.get_legend_handles_labels() ax.legend( ((handles[0], handles[1]), handles[2]) , ('one', 'two') ) ... The first handles--handles[0] and handles[1]--are combined but not side by side: the hatched rectangle is placed over the top of the black rectangle so the handle looks like it is just hatched. How might I create this mixed handle? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/black-and-hatched-legend-handle-tp40979.html Sent from the matplotlib - users mailing list archive at Nabble.com. -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] hammer projection
The code below uses axisartist toolkit. http://nbviewer.ipython.org/5467593 This is modified from 3rd example from the below example. http://matplotlib.org/examples/axes_grid/demo_floating_axes.html I hope this helps. Regards, -JJ On Tue, Apr 23, 2013 at 11:17 PM, Marian Jakubik mjaku...@ta3.sk wrote: Hi all, is there any possibility to show only first quadrant in hammer projection? If it is not implemented in matplotlib, have you any trick for doing this? Thanks in advance for your help. Best, Marian -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users