-
Notifications
You must be signed in to change notification settings - Fork 69
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
how to turn on the grid? #24
Comments
Hi @LukaPitamic, thanks for the kind words! As mplcyberpunk is only a decorative layer, you can refer to the matplotlib docs for most options. See e.g. here for grid options. Does this answer your question? |
Hi @dhaitz, |
hi @LukaPitamic, which specific example from the README are you referring to? |
Here you go: import numpy as np
import matplotlib.pyplot as plt
import mplcyberpunk
plt.style.use("cyberpunk")
plt.rcParams['figure.dpi'] = 100
x = np.linspace(0, 2*np.pi, 128)
n = 20
colors = plt.cm.cool(np.linspace(0,1,n))
for i in range(n):
y = np.cos(x) * (i-(n-1)/2)
plt.plot(x, y, color=colors[i])
mplcyberpunk.make_lines_glow()
plt.show() Please let me know if this is sufficient. |
AMAZING!!! @dhaitz, thank you very, very much. |
First and foremost - AWESOME project.
Working in data-analysis world I'm always missing some aesthetics to spice up the work.
However I'm trying to get closer to examples displayed on readme.md and I can't find any elegant way to show the grid. I can add it manually of course but the examples are so well balanced I wish I could achieve the same. Also what size and DPI were used for achieving this beauty?
And again, thank you for taking care of something missing in this world ;).
The text was updated successfully, but these errors were encountered: