When you want to adjust the axis scale interval with APLpy

I was a little addicted to the method of adjusting the axis scale interval with APLpy, so make a note.

For example, if you want to adjust the display interval of the x-axis main scale, use degrees.

fig.ticks.set_xspacing(0.0005)

Just do it. However, at this time, the argument must be a multiple of the minimum unit of label format. Now

fig.ticklabels.set_xformat(hh:mm:ss.ss)

If so, the minimum unit is 0.001s or 0.015 arcsec, and therefore 0.015 / 3600 degree. Based on this, you can put the number of n * 0.015 / 3600 in set_xspacing with n as an integer.

reference

APLpy documentation — aplpy v2.0.2 Overlapping tick labels on x axis · Issue #258 · aplpy/aplpy

Recommended Posts

When you want to adjust the axis scale interval with APLpy
When you want to update the chrome driver.
Settings when you want to run python-mecab with travis
When you want to filter with Django REST framework
When the variable you want to superscript with matplotlib is two or more characters
Solution when you want to use cv_bridge with python3 (virtualenv)
[AWS] What to do when you want to pip with Lambda
Use aggdraw when you want to draw beautifully with pillow
When you want to register Django's initial data with relationships
When you want to keep the Sphinx documentation theme as usual
When you want to print to standard output with print while testing with pytest
When you want to send an object with requests using flask
When you want to use it as it is when using it with lambda memo
If you want to include awsebcli with CircleCI, specify the python version
When you want to replace a column with a missing value (NaN) column by column
Python Note: When you want to know the attributes of an object
Memorandum of means when you want to make machine learning with 50 images
Personal best practice template to use when you want to make MVP with Flask
[OpenCV] When you want to check if it is read properly with imread
What you want to memorize with the basic "string manipulation" grammar of python
Linux: Netplan configuration guide to see when you want to fix the IP address
If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended
Links to do what you want with Sublime Text
I want to inherit to the back with python dataclass
When you want to play a game via Proxy
Things to do when you start developing with Django
When you want to plt.save in a for statement
The programming language you want to be able to use
Try to specify the axis with PyTorch's Softmax function
I wrote you to watch the signal with Go
Make a note of what you want to do in the future with Raspberry Pi
I know? Data analysis using Python or things you want to use when you want with numpy
[Python] When you want to import and use your own package in the upper directory
Golang: The matter that you want to execute the process at exactly 00:00 or 30 minutes at the specified interval.
If you want to use field names with hyphens when updating firestore data in python
[Django] A memorandum when you want to communicate asynchronously [Python3]
read the tag assigned to you on ec2 with boto3
Knowledge you need to know when programming competitive programming with Python2
Move what you installed with pip to the conda environment
I want to change the Japanese flag to the Palau flag with Numpy
[Python] I want to use the -h option with argparse
When you access the web server, L Chika with Arduino
When you want to use python2.x on modern Gentoo Linux
If you want your colleagues to use the same language
When you want to hit a UNIX command on Python
How to increase the axis
When you want to use multiple versions of the same Python library (virtual environment using venv)
You there who want to launch Rails on both the host and the client with Docker Compose!
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
[Subprocess] When you want to execute another Python program in Python code
If you want to become a data scientist, start with Kaggle
Don't write Python if you want to speed it up with Python
I want to know the weather with LINE bot feat.Heroku + Python
Become familiar with (want to be) around the pipeline of spaCy
[Linux] I want to know the date when the user logged in
When it is troublesome to copy what you built with vue
I want to run the Python GUI when starting Raspberry Pi
[Python] When you want to use all variables in another file
[TensorFlow] If you want to run TensorBoard, install it with pip
I want to check the position of my face with OpenCV!
What to do when you get "I can't see the site !!!!"