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

Decade missing in bode plot #765

Closed
lucasmsoares96 opened this issue Oct 31, 2022 · 2 comments
Closed

Decade missing in bode plot #765

lucasmsoares96 opened this issue Oct 31, 2022 · 2 comments

Comments

@lucasmsoares96
Copy link

When I plot the goat diagram it hides the decade 10¹

begin
	using ControlSystems
	using Plots
	h₁ = tf(
		[10],
		[1, 20]
	)
	bodeplot(h₁)
end

Captura de Tela 2022-10-31 às 10.39.49|690x450

@baggepinnen
Copy link
Member

This is up to the plotting backend to select, if you plot with GR (the default backend), it does indeed look like they do not display the 1e1 tick
image

you can either

  1. Manually specify the ticks using keyword argument xticks = , e.g., bodeplot(h₁, xticks=exp10.(0:0.5:3))
    image

  2. Choose another backend, e.g. plotly()

@baggepinnen
Copy link
Member

baggepinnen commented Oct 31, 2022

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

2 participants