Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-26 Thread Jae-Joon Lee
Here is the example that I believe that does what you want. The way it does is very similar to how legend object is created. Unfortunately, the offsetbox module, which enables this example, is not well documented. I hope the example is explanatory enough. IHTH, -JJ import matplotlib.pyplot as p

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-25 Thread Gökhan Sever
On Wed, Nov 24, 2010 at 8:38 AM, Alejandro Weinstein wrote: > On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever 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 y

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-24 Thread Alejandro Weinstein
On Tue, Nov 23, 2010 at 9:37 AM, Gökhan Sever 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.

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-24 Thread Alejandro Weinstein
On Tue, Nov 23, 2010 at 8:15 PM, Nicolas Bigaouette wrote: > Why not just use latex? > plt.text(0.05, 0.95, r"This is the square marker: $\Box$ Subscript: $_\Box$ > superscript: $^\Box$", fontsize=20) It produces the following error: Exception in Tkinter callback Traceback (most recent call last

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Nicolas Bigaouette
Why not just use latex? plt.text(0.05, 0.95, r"This is the square marker: $\Box$ Subscript: $_\Box$ superscript: $^\Box$", fontsize=20) -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the la

Re: [Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Gökhan Sever
On Tue, Nov 23, 2010 at 10:22 AM, Alejandro Weinstein wrote: > > Hi: > > I want to use the symbol corresponding to a marker in a text > annotation. Something like > > textstr = 'This is the square marker: ?' > ax.text(0.05, 0.95, textstr) > > Is there something I can place where the question mark

[Matplotlib-users] Use a marker symbol in a text string

2010-11-23 Thread Alejandro Weinstein
Hi: I want to use the symbol corresponding to a marker in a text annotation. Something like textstr = 'This is the square marker: ?' ax.text(0.05, 0.95, textstr) Is there something I can place where the question mark is above to get the actual square (or any other of the symbols you can use as a