two plots one multiple python matplotlib subplot

python - plots - ¿Hacer marcas de subplot más largas en matplotlib?



subplot title python (1)

Intenta lo siguiente:

#example figure1 ax1.plot(range(2),range(2),linewidth=2) ax1.minorticks_on() ax1.tick_params(''both'', length=20, width=2, which=''major'') ax1.tick_params(''both'', length=10, width=1, which=''minor'')

Puedes repetir lo mismo para ax2 . ¿Esto funciona para tí?

Estoy tratando de alterar las marcas de verificación a lo largo de los ejes de un argumento secundario multipanel de python. Tengo dos paneles que comparten un eje x común. He hecho el borde alrededor de la trama más grueso, así como hacer que todas las marcas a lo largo de los ejes sean más gruesas. Tengo dos preguntas:

¿Cómo puedo alargar todas las marcas (ambos ejes) para que sean más visibles?

¿Cómo agrego marcas de verificación más pequeñas pero notables entre las marcas de verificación principales?

Aquí hay un mínimo ejemplo de trabajo de lo que tengo hasta ahora.

from numpy import * from scipy import * from pylab import * from random import * import pylab import matplotlib.pyplot as plt #make the axis border thick pylab.rc("axes", linewidth=4.0) pylab.rc("lines", markeredgewidth=4) #create a figure with two panels that shares the x-axis f, (ax1, ax2) = plt.subplots(2, sharex=True, sharey=False) #example figure1 ax1.plot(range(2),range(2),linewidth=2) #example figure 2 ax2.plot(range(2),range(2),linewidth=2) # Fine-tune figure; make subplots close to each other and hide x ticks for # all but bottom plot. f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) show()