Code Monkey home page Code Monkey logo

Comments (4)

ajabri avatar ajabri commented on June 29, 2024

Hi @oal17

The current wrapper we have for line indeed does not support that, but you can totally just construct it yourself following the plotly convention:

https://plot.ly/python/line-charts/
https://plot.ly/python/reference/ (you can find the supported symbols there)

A simple example:

import visdom
vis = visdom.Visdom()

trace = dict(x=[1,2,3], y=[4,5,6], marker={'color': 'red', 'symbol': 104, 'size': "10"},
                    mode="markers+lines",  text=["one","two","three"], name='1st Trace')
layout=dict(title="First Plot", xaxis={'title':'x1'}, yaxis={'title':'x2'})

vis._send(data=[trace], layout=layout, win='mywin')

Hope that helps!

from visdom.

oal17 avatar oal17 commented on June 29, 2024

That works - thanks!

from visdom.

sorenwacker avatar sorenwacker commented on June 29, 2024

I get:

Setting up a new session...
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-52-cd53ba9c5275> in <module>
      6 layout=dict(title="First Plot", xaxis={'title':'x1'}, yaxis={'title':'x2'})
      7 
----> 8 vis._send(data=[trace], layout=layout, win='mywin')

TypeError: _send() got an unexpected keyword argument 'data'

from visdom.

JackUrb avatar JackUrb commented on June 29, 2024

@soerendip the _send() function has changed signature slightly, data is now msg or just the first argument.

from visdom.

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.