4 examples of 'matplotlib tick label format scientific notation' in Python

Every line of 'matplotlib tick label format scientific notation' 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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
616def set_label_formatter(self, label_formatter):
617 self._label_formatter = label_formatter

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

14def format_axis(ax, label_padding=2, tick_padding=0, yticks_position='left'):
15 ax.xaxis.set_ticks_position('bottom')
16 ax.yaxis.set_ticks_position(yticks_position)
17 ax.yaxis.set_tick_params(which='both', direction='out', labelsize=fontsize,
18 pad=tick_padding, length=2, width=0.5)
19 ax.xaxis.set_tick_params(which='both', direction='out', labelsize=fontsize,
20 pad=tick_padding, length=2, width=0.5)
21 ax.xaxis.labelpad = label_padding
22 ax.yaxis.labelpad = label_padding
23 ax.xaxis.label.set_size(fontsize)
24 ax.yaxis.label.set_size(fontsize)
25 return ("%f"%val).rstrip("0").rstrip(".")
396def set_default_locators_and_formatters(self, axis):
397 """
398 Set the locators and formatters to specialized versions for
399 symmetrical log scaling.
400 """
401 axis.set_major_locator(SymmetricalLogLocator(self.get_transform()))
402 axis.set_major_formatter(LogFormatterMathtext(self.base))
403 axis.set_minor_locator(SymmetricalLogLocator(self.get_transform(), self.subs))
404 axis.set_minor_formatter(NullFormatter())

Related snippets