Comments (4)
@pzwang looking from outside I think the plot + kind/type argument is a neat proposal. Btw. this also how Pandas deals with it which would mean reducing API learning costs for users. Cheers, Denis
from bokeh.
Thanks for the input. For scatter plots on Pandas dataframes, being able to map marker type to groups is natural. (For regular tables or Numpy record arrays, it would be columns or fields that we would map to marker type.) But what about varying plot type (e.g. lines, bars, polygons, and scatter) across the same dataset, in one function call? Is that really useful?
Any thoughts @bryevdv?
from bokeh.
But what about varying plot type (e.g. lines, bars, polygons, and scatter) across the same dataset, in one function call? Is that really useful?
If we're not confused by language this is exactly what pandas does. You can pass 'line', 'bar', 'barh' and 'scatter' as arguments to the kind parameter. I think this is quite neat. Also the qplot function seems to implement a similar logic, at least from a bird-eye view.
from bokeh.
I think we're talking about slightly different things. Looking at the docs for DataFrame.plot, I can see what you mean. What I'm asking, however, is when one might actually vary the type procedurally based on column or group. DataFrame.plot does not support that, and I don't think that's very useful anyway. I see what you mean about reducing API learning cost, but if the top-level scatter(), bar(), line(), etc. functions all took the same core set of arguments, then it's roughly equivalent.
One thing that this does impact is that the domain/co-domain mapping for scatter, line, bar, heatmap, etc. are all different, and require different kinds of downsampling and support different kinds of tools & inspectors. I think distinguishing them at the top level, instead of merely having them be a value argument to one single generic function, makes this actually more accessible for users of the API.
from bokeh.
Related Issues (20)
- [FEATURE] Coloring of active tabs HOT 1
- [BUG] Button does not updated when property is changed
- `Tooltip` node positioning is wrong when the target is offset
- [BUG] Figures break inside Scrollbox if using frame_height or followed by div using stretch_width HOT 1
- `webgl` backend doesn't support non-visual overrides
- [BUG] Visualization of large(r) dataset fails to load even if amount of data being rendered remains the same HOT 12
- Missing release notes
- [BUG] Dropdown doesnt update properly when .menu changed in 3.4
- [BUG] TimePicker widget not displaying correct time as set by `value` HOT 2
- [FEATURE] More documentation for (bundling) custom extensions HOT 2
- GMap example not showing glyphs HOT 1
- Remove twitter icon link from docs and other properties HOT 2
- Add support toggleable `CustomAction` tool buttons HOT 4
- [DOCUMENTATION] Boxplot example wrongly computes whiskers HOT 2
- [FEATURE] Make pandas optional dependency with polars as alternative HOT 1
- [BUG] Nanosecond-precision datetime is truncated to microsecond HOT 3
- [BUG] sizing mode issue with layout and nested rows, columns HOT 1
- [BUG] Compilation of Bokeh extension fails in the presence of a package.json file with type: module HOT 1
- [BUG] DataTable inside Dialog HOT 1
- [BUG] JS errors on Bokeh docs page HOT 7
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 bokeh.