Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase the length and width of the major and minor ticks? #485

Open
Dakalo12 opened this issue Jul 19, 2023 · 3 comments
Open

How to increase the length and width of the major and minor ticks? #485

Dakalo12 opened this issue Jul 19, 2023 · 3 comments
Labels

Comments

@Dakalo12
Copy link

Hi,

My Python version is 3.8.0 and APLpy vesrion is 2.0.3.

The following is the attribute error I get when trying to increase the major and minor ticks length and width.


AttributeError Traceback (most recent call last)
/tmp/ipykernel_3423/2029495903.py in

---> 27 f.set_tick_size(10)
28
29 f.add_beam()

AttributeError: 'FITSFigure' object has no attribute 'set_tick_size'

Thank you for your help in advance.

@astrofrog
Copy link
Member

I think you should be using t.ticks.set_length (which includes a minor_factor argument to control the minor tick length) as well as f.ticks.set_linewidth - could you let me know if that works?

@Dakalo12
Copy link
Author

Hi @astrofrog,

Thank you for the response

I used f.ticks.set_length(10, minor_factor = 5), it is only increasing the length of the major ticks, there is no change on minor ticks.

The f.ticks.set_linewidth is workig.

@trhunter
Copy link

trhunter commented Jul 19, 2023

Hi,
By coincidence, I had the same experience today with python 3.8, aplpy 2.1.0. I could change the linewidth of the ticks and the length of the major ticks, but not the length of the minor ticks.
Todd

@astrofrog astrofrog added the Bug label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants