Skip to content

Log scale tick labels are overlapping  #6549

@mxmlnkn

Description

@mxmlnkn
  • Linux hypatia-pc 4.5.0-1-amd64 Fix autofmt_xdate() when using in conjunction with twinx() #1 SMP Debian 4.5.1-1 (2016-04-14) x86_64 GNU/Linux

    lsb_release -a
        No LSB modules are available.
        Distributor ID: Debian
        Description:    Debian GNU/Linux 8.4 (jessie)
        Release:    8.4
        Codename:   jessie
    
  • matplotlib 1.5.2~rc2-1

  • Python 2.7.11+

  • installed using: sudo apt-get install -t sid python matplotlibg

Here is an example where the problem appears:

from matplotlib.pyplot import *
figure( figsize=[4,3] )
subplot( 111, xscale='log' )
plot( [1e-20,1e5], [1e-16,10] )
show()

For lack of time the following image wasn't reproduced with the above example, but came from another problem:
loglabel-bugfix-reduced

The right side shows the problem and the left side is my workaround which calculates some distance for a given amount of labels I want (here I wanted 5 labels or less). So it set every exponent, but every sixth integer exponent, i.e. -16,-10,-4.

It would be cool if it was fully automatic like with linear scales.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions