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.

Setting size of errorbar removes the ticks

See original GitHub issue

I am trying to make errorbars a bit thicker. Using sizein encoding works, but removes the ticks. The json below (modified from https://vega.github.io/vega-lite/docs/errorbar.html) gives no ticks as expeced when testing in https://vega.github.io/editor/

{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "data": {"url": "data/barley.json"},
  "layer": [
    {
      "mark": {"type": "errorbar", "ticks": true},
      "encoding": {
        "x": {
          "field": "yield",
          "type": "quantitative",
          "scale": {"zero": false}
        },
        "y": {"field": "variety", "type": "ordinal"},
        "size": {"value": "2"}
      }
    },
    {
      "mark": {"type": "point", "filled": true, "color": "black"},
      "encoding": {
        "x": {"field": "yield", "type": "quantitative", "aggregate": "mean"},
        "y": {"field": "variety", "type": "ordinal"}
      }
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, May 16, 2020

Yes, thickness of both of them.

1reaction
domoritzcommented, May 15, 2020

@chanwutk do you want to fix this one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errorbar with Adjusted Tick Size - MathWorks Blogs
The errorbar automatically determines the tick size based on the limits of the axes, and there is no simple option to change that....
Read more >
Having axis ticks show fully for errorbar plot in Matplotlib
Does anyone know what I should change so that everything fits. I don't mind if some of the labels need to occupy 2...
Read more >
How do I increase the tick width of error bars in ListPlot?
I have a plot with y-error bars and would like to increase the tick size of my error bars. This is the code...
Read more >
matplotlib.axes.Axes.errorbar — Matplotlib 3.6.2 documentation
The length of the error bar caps in points. capthickfloat, default: None. An alias to the keyword argument markeredgewidth (a.k.a. mew). This setting...
Read more >
7.7 Adding Error Bars | R Graphics Cookbook, 2nd edition
We also specified the width of the ends of the error bars, with width = .2 . It's best to play around with...
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