Warum gibt es Gitterlinien für einige Handlungen und nicht für andere?Python

Python-Programme
Anonymous
 Warum gibt es Gitterlinien für einige Handlungen und nicht für andere?

Post by Anonymous »

Betrachten Sie diese MWE, < /p>

Code: Select all

from matplotlib import pyplot
pyplot.style.use('classic')
pyplot.rcParams.update( {
'text.usetex': True,
"font.family": "serif",
'text.latex.preamble': r'\usepackage{amsmath, amssymb, mlmodern}', } )
import numpy

fig, ax = pyplot.subplots(3,3)
fig.tight_layout()
fig.subplots_adjust(hspace=0.1, wspace=0.1,
left=0.09, right=.95, top=.95, bottom=.09)

x = numpy.linspace(0, 8, 100)

for i in range(3):
for j in range(3):
ax[i,j].plot(x, numpy.sin((1+j)*x+numpy.pi*i), )
ax[i,j].grid(which='both')  #

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post