question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: image layer above grid lines and below traces

See original GitHub issue

Currently 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

newplot (3)

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:open
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
vlastimil-dolejscommented, Apr 29, 2021

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 both xaxis.gridcolor and yaxis.gridcolor to rgba(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 define above grid/below trace layer for the shapes.

3reactions
nicolaskruchtencommented, Apr 30, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found