Using omega_limits with 8 dacades we can make Bode plots successfully with both major and minor ticks.
But when increasing then omega_limits to 9 decades the minor ticks in xaxis are not plotted.
| Library |
Version |
| control |
0.9.4 |
| matplotlib |
3.7.2 |
Minimum working example:
import control
import matplotlib.pyplot as plt
omega_limits = [0.1,1000000]
G = control.tf(1,[1,5000])
plt.figure(figsize=[10,5])
control.bode(G,omega_limits=omega_limits, Hz=True)
plt.savefig('correct.png')
plt.show()

When increasing the omega upper limit to 10000000 (one decade above) the ticks are missing:
import control
import matplotlib.pyplot as plt
omega_limits = [0.1,10000000]
G = control.tf(1,[1,5000])
plt.figure(figsize=[10,5])
control.bode(G,omega_limits=omega_limits, Hz=True)
plt.savefig('wrong.png')
plt.show()

Is this a bug or an undocumented limitation of the package?
I tried to force show minor ticks but it does not work.
Using
omega_limitswith 8 dacades we can make Bode plots successfully with both major and minor ticks.But when increasing then omega_limits to 9 decades the minor ticks in xaxis are not plotted.
Minimum working example:
When increasing the omega upper limit to 10000000 (one decade above) the ticks are missing:
Is this a bug or an undocumented limitation of the package?
I tried to force show minor ticks but it does not work.