GenieFramework / GenieFramework/StipplePlotly.jl

PlotLayout has no field coloraxis

Open
#46 3 comments 0 reactions 1 assignee View on GitHub

@AbhimanyuAryan is already working on this.

Since Jul 21, 2022.

bug
Dominant language
Julia
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

as the doc string of PlotDataMarker says
```julia
`coloraxis::String` - Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis.
```
however, when i write a PlotLayout like
```julia
const preview_layout = PlotLayout(
title = PlotLayoutTitle(text = "Densified Overlay preview", font = Font(24)),
showlegend = true,
grid = PlotLayoutGrid(rows = 1, columns = 2, pattern = "independent"),
xaxis = [PlotLayoutAxis(xy = "x", index = i, title = "x") for i = 1:2],
yaxis = [PlotLayoutAxis(xy = "y", index = i, title = "y") for i = 1:2],
coloraxis = [PlotLayoutAxis(xy = "z", index = i, title = "z") for i = 1:2]
)
```
the error message shows that
```julia
ERROR: type PlotLayout has no field coloraxis
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.