Hi Andreas, 2012/7/26 Andreas Hilboll <li...@hilboll.de>: > Hi, > > I would like to create a figure which only contains a legend, and no axes > at all. I would like to manually assign the colors. I found this here: > > http://stackoverflow.com/a/3302666 > > but from there on, I'd like to remove the axes, and put the legend into > three columns.
If the plot attached it's fine for you it's easy: import matplotlib.pyplot as plt ax = plt.subplot() #create the axes ax.set_axis_off() #turn off the axis .... #do patches and labels ax.legend(patches, labels, ...) #legend alone in the figure plt.show() Cheers, Francesco > > Any help is greatly appreciated :) > Andreas. > > > ------------------------------------------------------------------------------ > 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 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 > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
test.pdf
Description: Adobe PDF document
------------------------------------------------------------------------------ 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 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 https://lists.sourceforge.net/lists/listinfo/matplotlib-users