Lines Matching refs:ax

779         s.ax = fig.add_subplot(gs[
818 ax = s.ax
821 ax.plot([x for x,_ in dats], [y for _,y in dats],
828 ax.set_xscale('symlog')
829 ax.xaxis.set_minor_locator(mpl.ticker.NullLocator())
831 ax.set_yscale('symlog')
832 ax.yaxis.set_minor_locator(mpl.ticker.NullLocator())
834 ax.set_xlim(
845 ax.set_ylim(
858 ax.xaxis.set_major_formatter(lambda x, pos:
861 ax.xaxis.set_ticklabels(xticklabels_)
863 ax.xaxis.set_major_locator(AutoMultipleLocator(2))
865 ax.xaxis.set_major_locator(mpl.ticker.FixedLocator(xticks_))
867 ax.xaxis.set_major_locator(AutoMultipleLocator(2, xticks_-1))
869 ax.xaxis.set_major_locator(mpl.ticker.NullLocator())
871 ax.xaxis.set_major_formatter(lambda x, pos:
874 ax.xaxis.set_ticklabels(xticklabels_)
876 ax.xaxis.set_major_locator(mpl.ticker.AutoLocator())
878 ax.xaxis.set_major_locator(mpl.ticker.FixedLocator(xticks_))
880 ax.xaxis.set_major_locator(mpl.ticker.MaxNLocator(xticks_-1))
882 ax.xaxis.set_major_locator(mpl.ticker.NullLocator())
884 ax.yaxis.set_major_formatter(lambda x, pos:
887 ax.yaxis.set_ticklabels(yticklabels_)
889 ax.yaxis.set_major_locator(AutoMultipleLocator(2))
891 ax.yaxis.set_major_locator(mpl.ticker.FixedLocator(yticks_))
893 ax.yaxis.set_major_locator(AutoMultipleLocator(2, yticks_-1))
895 ax.yaxis.set_major_locator(mpl.ticker.NullLocator())
897 ax.yaxis.set_major_formatter(lambda x, pos:
900 ax.yaxis.set_ticklabels(yticklabels_)
902 ax.yaxis.set_major_locator(mpl.ticker.AutoLocator())
904 ax.yaxis.set_major_locator(mpl.ticker.FixedLocator(yticks_))
906 ax.yaxis.set_major_locator(mpl.ticker.MaxNLocator(yticks_-1))
908 ax.yaxis.set_major_locator(mpl.ticker.NullLocator())
910 ax.grid(sketch_params=None)
914 ax.set_xlabel(escape(xsublabel))
916 ax.set_ylabel(escape(ysublabel))
918 ax.set_title(escape(subtitle))
929 for h, l in zip(*s.ax.get_legend_handles_labels()):
933 ax = fig.add_subplot(gs[(1 if legend_above else 0):,-1])
934 ax.set_axis_off()
935 ax.legend(
943 ax = fig.add_subplot(gs[0, :grid.width])
944 ax.set_axis_off()
948 legend_ = ax.legend(
957 <= ax.get_window_extent().width):
961 ax = fig.add_subplot(gs[-1, :grid.width])
962 ax.set_axis_off()
967 ax.set_title(escape(xlabel),
973 legend_ = ax.legend(
982 <= ax.get_window_extent().width):
997 xmid = (grid[0,0].ax.get_position().x0 + grid[-1,0].ax.get_position().x1)/2
998 ymid = (grid[0,0].ax.get_position().y0 + grid[0,-1].ax.get_position().y1)/2