#how can I create a bar-chart with log-scaling in cetz-plot?

13 messages · Page 1 of 1 (latest)

next quiver
#

How can I create a bar-chart with log-scaling in cetz-plot?

I thought i could pass in mode as a parameter in options, but I honestly don't think I'm taking the right approach. I'm looking at the source for bar-chart, and might try copying and editing that so I can get a more custom solution.

#

how can I create a bar-chart with log-scaling in cetz-plot?

desert egret
#

I don't think I've ever seen a logarithmic bar chart. That doesn't feel like something that makes sense very often

next quiver
#

I was able to get a part of it working, but it doesn't seem to be working particularly well. if I try specifying the ticks, it just ends up reporting "number gets too big"

#

Anything more than 1x10^18

#

This was done through barchart thought, so I'm going to just try using plot

#

Although, I don't expect to escape this issue, I'm just going to give it a shot

#

Maybe the data can be normalized first? But in that case, I have no idea what equation to use for this use case

#

how can the numbers be growing soo large? 64-bit floating-point support can reach number bigger than 1e300

#

Is it possible to create a peicewise scale?

#

Yea, that would be perfect

next quiver
#

The problem was avoided by taking a log of all the datapoints, and plotting them on a regular bargraph (linear) with a detailed x-label