Every line of 'seaborn set_xticklabels' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
270 def set_xticklabels(xticklabels, 271 rotation = 'vertical', 272 fontsize = 16, 273 **kargs): 274 ax = plt.gca() 275 ax.set_xticklabels(xticklabels, rotation = rotation, 276 fontsize = fontsize, **kargs)
1516 def _add_axis_labels(self): 1517 """Add labels to the left and bottom Axes.""" 1518 for ax, label in zip(self.axes[-1, :], self.x_vars): 1519 ax.set_xlabel(label) 1520 for ax, label in zip(self.axes[:, 0], self.y_vars): 1521 ax.set_ylabel(label)
372 def set_axis_labels ( self , x ) : 373 pass
60 def _add_yticklabels(ax): 61 62 ax_yticklabels = [] 63 for y_label in ax.get_yticklabels(): 64 if y_label.get_text() not in ['dummy1', 'dummy2']: 65 ax_yticklabels.append(y_label.get_text()) 66 else: 67 ax_yticklabels.append("") 68 ax.set_yticklabels(ax_yticklabels) 69 return ax
41 def setXLabel(self, label): 42 plt.xlabel(label)
104 def setup_axis(X, Y, ax=None, fig=None, ylims=None): 105 """Setup axis, including timer for animation or snaps 106 107 Parameters 108 ---------- 109 X : 110 space disctretization to get limits 111 Y : 112 solution to get limits 113 ax : 114 ax where to put everything, if None current axes are used (Default value = None) 115 fig : 116 fig where to put everything, if None current figure is used (Default value = None) 117 ylims : 118 custom ylims, if None y axis limits are calculated from Y (Default value = None) 119 120 Returns 121 ------- 122 ax 123 124 fig 125 126 time_text 127 object to fill in text 128 129 """ 130 if ax is None: 131 fig = plt.gcf() 132 ax = plt.gca() 133 if ylims is None: 134 lowery = nm.min(Y) - nm.min(Y) / 10 135 uppery = nm.max(Y) + nm.max(Y) / 10 136 else: 137 lowery = ylims[0] 138 uppery = ylims[1] 139 ax.set_ylim(lowery, uppery) 140 ax.set_xlim(X[0], X[-1]) 141 time_text = ax.text(X[0] + nm.sign(X[0]) * X[0] / 10, 142 uppery - uppery / 10, 143 'empty', fontsize=15) 144 return ax, fig, time_text
47 def color_y_axis(ax, color): 48 """Color your axes.""" 49 for t in ax.get_yticklabels(): 50 t.set_color(color)