On Wed, Nov 24, 2010 at 8:38 AM, Alejandro Weinstein <alejandro.weinst...@gmail.com> wrote: > On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever <gokhanse...@gmail.com> wrote: >> As I have learnt from Michael Droettboom, you can simply use unicode >> characters with a supported font set: >> In my setup I prefer DejaVu-Sans. First install these fonts into your >> system, then edit your matplotlibrc > > Thanks for the answer. But I think there must be an easier way without > the need to install anything. After all, the legend command is able to > create text using the markers. > > Alejandro. >
You have three options then: 1-) Figure out how legend handles symbol drawing. 2-) Use latex / mathtext to represent symbols. 3-) Install a font and more intuitively insert a sqaure box into your string. For me, as long as the expression that is drawn on screen is not complicated, I am very happy using the unicode text approach. -- Gökhan ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users