dict.get () возвращает None, когда ключ взят из raw_input

Я сделал это раньше, используя следующее:

# Create figure and initial axis    
fig, ax0 = plt.subplots()
# Create a duplicate of the original xaxis, giving you an additional axis object
ax1 = ax.twinx()
# Set the limits of the new axis from the original axis limits
ax1.set_ylim(ax0.get_ylim())

Это будет точно дублировать исходную ось y.

0
задан AUK 25 February 2015 в 19:45
поделиться