python 2.7 - Matplotlib navigation toolbar is invisible -


when plot image, navigation toolbar (zoom-in, forward, back...) invisible. helped myself link: disable matplotlib toolbar. have first tried:

import matplotlib mpl mpl.rcparams['toolbar'] = 'toolbar2'

and checked if in file set 'none' not. did perhaps forget install packages? though don't errors.

is there alternative way zoom-in , see coordinates of cursor, because need.

edit 1

this code using. copied part, use plot.

#___plotting part___ import matplotlib mpl mpl.rcparams['toolbar'] = 'toolbar2' import matplotlib.pyplot plt  plt.ion() fig, ax = plt.subplots(figsize=(20, 10)) ax.set_title(plot_titel, loc='center', fontname=font_name, fontsize=16, color='black') ax.set_xlabel('column number', fontname=font_name, fontsize=16, color='black') ax.set_ylabel('mean of raw backscatter', fontname=font_name, fontsize=16, color='black') ax.plot(range(len(param_image)), param_image, c='black', marker='o') ax.plot(idx1[0], param_image[idx1], c='red', mec='red', marker='o', linestyle='') ax.plot(idx2, param_image[idx2], c='blue', mec='blue', marker='o', linestyle='')  ax.grid() fig.tight_layout()  plt.show() 

i had same problem before. uninstall , install again (try use anaconda or miniconda distribution install). sure after work.

do not mess matplotlibrc


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -