Skip to content

Strange warnings when using altx #347

Open
@syrte

Description

@syrte

Description

I get a bunch of warnings when calling altx. It may do no harm. Just report the behaviour for reference

Steps to reproduce

With the following code

import numpy as np
from matplotlib import pyplot as plt
import proplot as pplt

fig, ax = pplt.subplot(journal='nat1', refaspect=1)
ax.format(yscale='log', ylim=(1e-2, 1), yformatter='log')
ax.altx()  #  without this then everything will go well without warnings

I get a lot of warning message:

/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2613: UserWarning: AutoMinorLocator does not work with logarithmic scale
  self._tight_bbox = super().get_tightbbox(renderer, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/proplot/gridspec.py:820: UserWarning: AutoMinorLocator does not work with logarithmic scale
  bbox = fig.get_tightbbox(renderer)
/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2613: UserWarning: AutoMinorLocator does not work with logarithmic scale
  self._tight_bbox = super().get_tightbbox(renderer, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2601: UserWarning: AutoMinorLocator does not work with logarithmic scale
  super().draw(renderer, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2601: UserWarning: AutoMinorLocator does not work with logarithmic scale
  super().draw(renderer, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2613: UserWarning: AutoMinorLocator does not work with logarithmic scale
  self._tight_bbox = super().get_tightbbox(renderer, *args, **kwargs)
/opt/conda/lib/python3.8/site-packages/proplot/gridspec.py:820: UserWarning: AutoMinorLocator does not work with logarithmic scale
  bbox = fig.get_tightbbox(renderer)
/opt/conda/lib/python3.8/site-packages/proplot/axes/base.py:2601: UserWarning: AutoMinorLocator does not work with logarithmic scale
  super().draw(renderer, *args, **kwargs)

Proplot version

Paste the results of import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)here.

3.5.1
0.9.5.post289

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions