Support for line width/color array?
See original GitHub issueIf there are multiple paths in a single trace (separated by null
(s)), it could be useful to have a different stroke-width for each path. This way, I could solve this issue, without having to draw a separate trace for each line.
Minimal example here – http://codepen.io/cpsievert/pen/wMzdME
Issue Analytics
- State:
- Created 8 years ago
- Reactions:26
- Comments:32 (11 by maintainers)
Top Results From Across the Web
Explicitly specifying line colors when plotting a matrix
This has bugged me for years, but I have circumvented it by unrolling the matrix into a number of vectors that I plot...
Read more >colarray: a graphical array where color and line width can be set
This abstraction creates a regular Pd graphical array, where color and line width can be set. Download: colarray.zip The attributes of the ...
Read more >Layers | Style Specification | Mapbox GL JS
This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px...
Read more >Thick line geometry — pythreejs 2.4.1 documentation
Since WebGL does not guarantee support for line thickness greater than 1 for GL ... normalized=False), 'color': BufferAttribute(np.array([ [1, 0, 0], [1, 0, ......
Read more >Applying styles and colors - Web APIs | MDN
miterLimit = max miterLength / lineWidth = 1 / sin ( min θ / 2 ); The default miter limit of 10.0 will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In addition to https://plot.ly/r/reference/#scatter-line-width accepting a data array, it’d also be useful to have https://plot.ly/r/reference/#scatter-line-color accept a data array, so I can convert a plot like this:
@etpinard, Re:
One reasonable and potentially important application for varied line style (both width and color) is the network graph (https://plot.ly/python/network-graphs/).
The common use case is to use the line width and/or color to represent the weight of the connection, see e.g. this plot.