[Matplotlib-users] Using a picture as a legend label
A typical plot for me includes some simple line curves and a legend attempting to describe what apparatus that curve belongs to. Often the labels I give seem clear to me at the time, but even returning a month later to the plot, I'll be as lost as the next guy. A few of my colleagues have been plotting curves, and then including a picture or diagram in place of a typical legend label. The picture or diagram is bordered by the color of the trace on the plot. I am fairly certain the plots are done in Matlab. The diagrams are simply dropped into a powerpoint deck and given a border that is matched as close as possible to the trace. I did some things like that back in graduate school. Seems like it would be neat to have a way to do a legend in matplotlib that does something like this. I'm envisioning a regular axes with lines, scatter plots, etc. to the left and a column of graphics to the right. I would think this would be fairly doable using GridSpec or some of the similar layout. The place I could see getting hung up would be adding a color border to a picture that matches the trace and also doing the scaling to make it work all dynamically for different numbers of traces. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] savefig
Dear experts, I start ipython in ipython qtconsole --pylab=inline mode and make a plot. But if I use savefig('fig.png') the figure do not get saved instead I get a blank page. I also tried img.save('fig.png',png) but no use. Is there a way out or I need to do this after quitting and restarting in normal mode each time I want to save? ipython qtconsole --pylab=inline In [93]: ts.plot() Out[93]: *** Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST BOX NO: 21, IDA Jeedeemetla P.O. Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) E-mail:sjo.in...@gmail.com;sudheer.jos...@yahoo.com Web- http://oppamthadathil.tripod.com *** -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users