Skip to content
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

Negative sign (dash – ) renders incorrectly for SVG outputs #190

Open
Miladiouss opened this issue Aug 29, 2023 · 2 comments
Open

Negative sign (dash – ) renders incorrectly for SVG outputs #190

Miladiouss opened this issue Aug 29, 2023 · 2 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@Miladiouss
Copy link

fig.show('svg') renders correctly on a local Jupyter Notebook but when pushed to GitHub, some charecters such as hyphen for negative sign on axes are rendered as

Related Issues: 4118

import plotly.graph_objects as go

xs_blue, ys_blue = np.random.multivariate_normal([0, 0], [[1, 0.5], [0.5, 1]], 1_000).T
xs_red, ys_red = np.random.multivariate_normal([1, 1], [[1, -0.5], [-0.5, 1]], 1_000).T

fig = go.Figure()

fig.add_trace(go.Scatter(
    x=xs_blue,
    y=ys_blue,
    mode='markers',
    marker=dict(color='lightblue', size=3.5, opacity=.75), 
    name='Negative',
))

fig.add_trace(go.Scatter(
    x=xs_red,
    y=ys_red,
    mode='markers',
    marker=dict(color='orange', size=3.5, opacity=.75),
    name='Positive',
))

fig.layout.title = "Minus -1 vs Dash –1"
fig.layout.xaxis.title = r"$x$"
fig.layout.yaxis.title = r"$y$"


fig.layout.xaxis.range = (-5, +5)
fig.layout.yaxis.range = (-5, +5)

fig.show('svg')

SVG in Local Jupyter
SVG on GitHub

@Miladiouss
Copy link
Author

I have created a ticket on GitHub (for Microsoft):

https://support.github.com/ticket/personal/0/2310382

@gvwilson gvwilson transferred this issue from plotly/plotly.py Jul 11, 2024
@gvwilson gvwilson self-assigned this Jul 26, 2024
@gvwilson
Copy link
Collaborator

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson

@gvwilson gvwilson removed their assignment Aug 3, 2024
@gvwilson gvwilson added bug something broken P3 not needed for current cycle labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants