Proposal: image layer above grid lines and below traces
See original GitHub issueCurrently images and shapes support a layer
property to control whether objects are rendered 'above'
the traces in the figure of 'below'
. As shows in the following example, the 'below'
mode also places the images/shapes below the grid lines.
CodePen: https://codepen.io/jonmmease/pen/EqbLej
I find the the gridlines a bit distracting when placed on top of the image, and I would like to propose a third 'layer'
option, 'between'
, that would place images/shapes above the gridlines and below the traces.
Do you think this would this require adding a new layer to the svg plot? or could the shapes/image be added to the layer the gird is currently drawn on?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Add Grid To An Image File - Online Tool - Yo Motherboard
Online tool that will add a square grid to an image file. Select an image and configure a grid overlay and save in...
Read more >Importing Images as Backgrounds for Tracing - Visio Guy
One method for creating detailed equipment shapes involves tracing an image of the actual gizmo. We'd like to offer a few tips to...
Read more >How to edit artwork in Illustrator using Image Trace
Learn how to use Image Trace to convert bitmap images into vector artwork that you can modify and use in Adobe Illustrator.
Read more >The Grid Method - Art is Fun
how to use the grid method to enlarge or transfer an image ... Once you're finished, you simply erase or paint over the...
Read more >Plotly layer control: how to add texts in in front of shapes
Add layer="below" option to shapes . It specifies whether shapes are drawn below or above traces. shapes <- list( list(type = "rect", ...
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 FreeTop 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
Top GitHub Comments
Hi, I’m struggling with the same issue - the shape with layer
below
is overlayed by the grid. I have found a workaround (which is not perfect, but better than nothing). I’m setting bothxaxis.gridcolor
andyaxis.gridcolor
torgba(0, 0, 0, 0.07)
. This is the same as the default#eee
if you have a white background, but will not overlay/hide the shape line that is below the grid. It will just slightly darken it. Hope this will help someone. Still, it would be helpful to be able to defineabove grid/below trace
layer for the shapes.This is still relevant in the case of shapes, however, as pointed out in https://community.plotly.com/t/show-shapes-below-traces-and-above-grid/38629/3