GithubHelp home page GithubHelp logo

legend markers about plotly.py HOT 3 OPEN

plotly avatar plotly commented on May 2, 2024
legend markers

from plotly.py.

Comments (3)

theengineear avatar theengineear commented on May 2, 2024

@guenp, yes, this is a known issue that we're working on. I'll leave this open and let you know when it gets updated.

In the meantime, if you post a link to the actual live plotly graph here, I'd happily show you how to make these changes.

The simplest thing you can do is simply not draw a legend in matplotlib and then update the legend to be on with update:

## make some matplotlib figure here (don't create legend)
update = {"layout": {"showlegend": True}}
py.iplot_mpl(fig, update=update, filename="your-filename-here")

From there, you can easily move the legend around in our webapp, or you could set it as follows:

## make some matplotlib figure here (don't create legend)
update={"layout": {"showlegend": True, "legend": {"x": 0, "y": 1}}}
py.iplot_mpl(fig, update=update, filename="your-filename-here")

from plotly.py.

guenp avatar guenp commented on May 2, 2024

@theengineear, thanks!
Here's the plot: http://plotly.fys.ku.dk/~guen/27
Now I'm having issues with hiding the legend labels for the interpolated curves.

from plotly.py.

guenp avatar guenp commented on May 2, 2024

ok, I fixed it by using this slightly hairy update :]
update={"layout": {"showlegend": True, "legend": {"x": 0.1, "y": 0.85}},
"data": [{},{"showlegend": False}],}

from plotly.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.