Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphical uncertainty #17

Open
mankoff opened this issue May 19, 2024 · 1 comment
Open

Graphical uncertainty #17

mankoff opened this issue May 19, 2024 · 1 comment
Labels
data data graphic graphic

Comments

@mankoff
Copy link
Owner

mankoff commented May 19, 2024

Should display uncertainty graphically.

Hatch

This approach seems unlikely to work with flows and curves - if the flow has a different width curves will be different.

Could possibly use TikZ style? The current style

      ice-to-air/.style={fill/.style={fill=none, top color=ice, bottom color=air},},

defines a color gradient, here top to bottom. Is it possible to define a binary step function gradient style where you choose the step location (in % or absolute)? Yes, of course, this is LaTeX.

Shading

It may be easiest to not auto-generate uncertainty. Just do it manually for the publication. Use hatch, dots, or shading. See for example https://www.visualcinnamon.com/portfolio/oecd-global-plastics-outlook/

@mankoff mankoff mentioned this issue May 19, 2024
2 tasks
@mankoff mankoff changed the title Uncertainty Graphical uncertainty May 19, 2024
@mankoff mankoff added graphic graphic data data labels May 19, 2024
@cfr42
Copy link

cfr42 commented Jun 6, 2024

  ice-to-air/.style={fill/.style={fill=none, top color=ice, bottom color=air},},

fill=none does nothing here.

defines a color gradient, here top to bottom. Is it possible to define a binary step function gradient style where you choose the step location (in % or absolute)? Yes, of course, this is LaTeX.

Not entirely sure what you mean here, but you can create both custom fadings and custom shadings, as well as custom patterns.

Note that there is a difference between patterns and patterns.meta. white hash in example 4 in the sankey manual, for example, uses the latter. patterns.meta is newer and intended to address some of the design problems in patterns in the same way as arrows.meta is intended as an improved replacement for arrows.

You should also look at pgfplots for ideas, though I don't know how well that would cooperate with sankey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data data graphic graphic
Projects
None yet
Development

No branches or pull requests

2 participants