gonum / gonum/plot

No tick numbers on a log axis plots

Open
#747 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

### What are you trying to do?

Plot data with labels on a log-log plot. Sometimes, no tick numbers are being displayed (depending on the data).

### What did you do?

See a full example at:
https://gist.github.com/tdegris/d1844e7c209d77962ecc891b47d3a04a

Summary:
```
p := plot.New()
[...]
p.X.Scale = plot.LogScale{}
p.X.Tick.Marker = plot.LogTicks{}
p.Y.Scale = plot.LogScale{}
p.Y.Tick.Marker = plot.LogTicks{}
p.Add(&plotter.Line{
XYs: data,
LineStyle: draw.LineStyle{ [...] },
})
```

### What did you expect to happen?

Some numbers on the ticks of the Y axis.

### What actually happened?

No tick numbers on the Y axis.

![noylabels](https://user-images.githubusercontent.com/244774/176428768-5dde761f-c67c-4a32-a8a7-74781b011062.png)

### What version of Go and Gonum/plot are you using?

go version:
```
go version go1.18.3 darwin/arm64
```

gonum/plot version:
```
/opt/homebrew/opt/go/pkg/mod/gonum.org/v1
$ git rev-parse HEAD
fba051f98f609634ae4392d0053ddfc627f8cdb3
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.