Andreas and Steve,

Thank you for the help. I'm now using text and figured out how to get 
matplotlib to use the correct font.

Naturally, I'd like to add the unicode symbols to the legend I'm generating 
with PyPlot. This stackoverflow post 
<http://stackoverflow.com/questions/27174425/how-to-add-a-string-as-the-artist-in-matplotlib-legend>
 suggests 
a legend handler goes exist for text objects, and I'll need to implement 
one. The post gives some Python code. How exactly would I go about 
implementing this custom handler in Julia? I suspect this is a more general 
PyCall question. If this group isn't an appropriate place for my question, 
any recommends on where I should ask it?

Thanks,
Alex

On Friday, January 1, 2016 at 11:17:11 AM UTC-6, Andreas Lobinger wrote:
>
> Hello c,
>
> On Friday, January 1, 2016 at 5:01:37 AM UTC+1, Alex Dowling wrote:
>>
>> I'd like to use a unicode character as a marker in plots created with 
>> PyPlot. Here is a minimal code example:
>>
>> x = [ 0 1 2]
>> y = x
>> scatter(x,y,marker="\U0001F4A7")
>>
>> which produces the following error:
>>
>>
>>  
>
>> My questions:
>>
>>    1. Any suggestions regarding the error above?
>>
>>
> as far as i can see the mathplotlib documentation about scatter and 
> entries in marker (
> http://matplotlib.org/api/markers_api.html#module-matplotlib.markers) 
> there are only certain entries in marker allowed and no free text. If you 
> have a limited set of x,y you could use pyplot.text which handles local 
> coordinates and unicode text.
>  
>

Reply via email to