Comments (6)
it looks like No.4 will be difficult without updating plot.ly library.
from visdom.
It's becoming increasingly clear that it might be worth it to assemble some utility functions. E.g, for the continuous error bars, something along the lines of:
def make_errors(ys,xs=None, color=None, name=None):
if xs is None:
xs = [list(range(len(y))) for y in ys]
minX = min([len(x) for x in xs])
xs = [x[:minX] for x in xs]
ys = [y[:minX] for y in ys]
assert all([(len(y) == len(ys[0])) for y in ys]), \
'Y should be the same size for all traces'
assert all([(x == xs[0]) for x in xs]), \
'X should be the same for all traces'
y = np.array(ys)
yavg = np.mean(y, 0)
ystd = np.std(y, 0)
err_traces = [
dict(x=xs[0], y=yavg.tolist(), mode='lines', name=name,
line=dict(color=color)),
dict(
x=xs[0] + xs[0][::-1],
y=(yavg + ystd).tolist() + (yavg - ystd).tolist()[::-1],
fill='tozerox',
fillcolor=(color[:-1] + str(', 0.2)')).replace('rgb', 'rgba')
if color is not None else None,
line=dict(color='transparent'),
name=name + str('_error') if name is not None else None,
)
]
return err_traces, xs, ys
from visdom.
@ajabri, how to send these traces in Visdom?
I image something like viz._send(err_traces, ...?)
from visdom.
Does the closed issue mean that these have been incorporated? Or that accepting it as an "enhancement" is enough to close the issue?
I would like the smooth interpolated curve functionality quite a lot.
from visdom.
Some of these are still definitely on the radar, but I've been caught up in larger infrastructural issues that I'm working still working through before I can get back to enhancements.
If you want to contribute to smoothing, I'd be happy to accept a PR that adds a numeric "smoothing" argument to the React component in PlotPane
that handles parsing through the data and averaging points with the number of neighbors listed in "smoothing". Then I can extract widgets out of #393 and get things working even without me finishing blockers for #393.
from visdom.
@dizcza if you still need to know, to send traces to plotly you need to do:
viz._send({'data': err_traces, 'layout': layout, 'win': 'mywin'})
also you need to include the type of plot so, the dicts should should be:
dict(x=xs[0], y=yavg.tolist(), mode='lines', type='line', name=name,
line=dict(color=color))
from visdom.
Related Issues (20)
- Create `env_path` if it does not exist or give instructions what to do. HOT 1
- [bug]firefox client crashed. Something went wrong with axis scaling HOT 3
- Not able to load latest visdom 0.2.2 module HOT 2
- cannot run "python -m visdom.server".ModuleNotFoundError: No module named 'visdom.utils' HOT 1
- Error: root initializing-- Visdom does not show graphs, only has a weird blank table HOT 1
- Removing Envs is buggy
- Use visdom in Jupyter HOT 2
- ERROR:root:initializing HOT 2
- Style.css file not found HOT 1
- Realtime updating cause panel to flicker HOT 6
- Is it possible to integrate the `static` folder into the installation package? HOT 5
- visdom绘制分类热力图 HOT 4
- Onboardbase: Secure Your Environment Configs and Credentials with Ease HOT 1
- ERROR:root:Error [Errno 99] Cannot assign requested address
- Heatmap log scale
- store_history option is not working HOT 1
- Cannot plot a histogram with several observations HOT 7
- Could not connect to the server for the viewing page. HOT 2
- Cannot Run Python server HOT 2
- when i install the visdom in pytortch framework, i donnot know how to address this issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visdom.