-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for multibyte character labels #205
Comments
Thanks for submitting an issue! Can you paste in the error you're encountering? And could you also provide a full snippet that we could use to replicate the error? |
I apologize for confusing you. And my code is as follows. import hypertools as hyp
import numpy as np
X = np.random.rand(3, 10)
labels = ["いち", "に", "さん"] # these are japanese characters
hyp.plot(X, labels=labels) |
Ah, thanks for clarifying. We use matplotlib as our back end renderer, so if the issue is also part of matplotlib we won't be able to address it directly within hypertools. Could you submit an issue to matplotlib as well? In the mean time, we are also looking into other renderers (plotly and ipyvolume), so I'll leave this issue open until the multibyte character issue is resolved. |
In matplotlib, I can render multibyte charcters by passing import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
fp = FontProperties(fname='path\to\Fonts\YuGothic.ttf')
plt.text(1, 1, 'にほんご', fontproperties=fp) So I want you to provide any way to specify fontproperty of matplotlib working in the backend. |
@manybooks thanks for the additional info. i've added an issue to add functionality to allow passing arguments to matplotlib through |
Is there any way to use the multibyte characters as labels?
I tried
hyp.plot(x, labels=multibyte_characters)
but not worked.( In
matplotlib.pyplot
, I always usefontproperty
)The text was updated successfully, but these errors were encountered: