Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

label1On set to true when axis.tick_params(axis='both', which='major', length=5) #13223

Closed
Milestone
@dertz

Description

@dertz

Bug report

Bug summary

I have more than 10 majorTicks on the X-axis. label1On is False for each of the odd numbered majorTicks. Call tick_params as shown in subject and label1On is True for all MajorTick members after return.

Code for reproduction

major_ticks=axis.xaxis.get_major_ticks()iflen(major_ticks)>10:fori,tickinenumerate(major_ticks):if (i%2)==1:tick.label1On=Falselogger.info("the value  of label1O is %r",axis.xaxis.majorTicks[1].label1On)axis.tick_params(axis='both',which='major',length=5)logger.info("the value  of label1O is %r",axis.xaxis.majorTicks[1].label1On)

Actual outcome

2019-01-18 16:42:28,509 - unavco.plotter.posfile - INFO - the value  of label1O is False2019-01-18 16:42:36,626 - unavco.plotter.posfile - INFO - the value  of label1O is True

Expected outcome

I expected the value of label1On to not change.
Use to work with version 1.2.0 and python 2.7

Matplotlib version

  • Operating system: Mac OS High Sierra
  • Matplotlib version: 3.0.2
  • Matplotlib backend (print(matplotlib.get_backend())): MacOSX
  • Python version: 3.7
  • Jupyter version (if applicable):
  • Other libraries:

yum install after install python 3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp