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

Feature Request: logarithmic scale in plot #3

Open
konradmoesch opened this issue Apr 26, 2024 · 4 comments
Open

Feature Request: logarithmic scale in plot #3

konradmoesch opened this issue Apr 26, 2024 · 4 comments

Comments

@konradmoesch
Copy link

I would like to use a logarithmic x-axis in a cetz plot.
One example for a usage is bode plots, where the frequency (x-axis) is normally plotted logarithmically (10^(-3) to 10^3):
image
But it would also be useful for the y-axis, I think.
TikZ supports this via xmode=log, for example, but maybe x-tick-step could be extended for log scaling.

@agerlach
Copy link

Same here, but for x- and/or y-axis

@tapyu
Copy link

tapyu commented May 17, 2024

In order to tackle semi-log and log-log plots at same time, an option scale can be created, where "x-log", "y-log", and "log-log" (or "xy-log"?) plot in logarithm scale in the x axis, y axis, and x and y axis, respectively. Other entries can be inserted to scale as new type of scales are requested.

@johannes-wolf
Copy link
Member

Maybe someone can help with this? I do not have the time right now.

@manuel5975p
Copy link

Fine... I'll do it myself.

No guarantees 😄 but I'll see what I can do

@johannes-wolf johannes-wolf transferred this issue from cetz-package/cetz Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants