# Question about disabling axis labels

**URL:** <https://community.openastronomy.org/t/question-about-disabling-axis-labels/1077>\
**Category:** SunPy\
**Tags:** sunpy, question\
**Created:** [August 17, 2024, 7:13am UTC](https://community.openastronomy.org/t/question-about-disabling-axis-labels/1077 "2024-08-17T07:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khlystova](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/khlystova/32/564_2.png) [@khlystova](https://community.openastronomy.org/u/khlystova)\
**Post date:** [August 17, 2024, 7:13am UTC](https://community.openastronomy.org/t/question-about-disabling-axis-labels/1077/1 "2024-08-17T07:13:41Z")

</div>

Hello,

Example “Displaying positions on a blank map”: [Displaying positions on a blank map](https://docs.sunpy.org/en/stable/generated/gallery/plotting/plotting_blank_map.html#sphx-glr-generated-gallery-plotting-plotting-blank-map-py),

If change the scale from scale=[220, 220] to scale=[120, 120], then the Stonyhurst longitudes and latitudes are displayed on the top and right plot axes. Is there a way to disable the labels on these axes?

---

<div class="post-metadata">

**Author:** ![nabobalis](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/nabobalis/32/14_2.png) [@nabobalis](https://community.openastronomy.org/u/nabobalis)\
**Post date:** [August 17, 2024, 4:38pm UTC](https://community.openastronomy.org/t/question-about-disabling-axis-labels/1077/2 "2024-08-17T16:38:18Z")

</div>

Hello @khlystova,

So those ticks on the right-side and topside come from the grid that appear when the lines interest the figure axes.

Doing the following removed them for me, I am not sure if there is a shorthand that will disable them with one line.

If you replace the draw\_grid line with

```auto
grid = blank_map.draw_grid(axes=ax, color="k")

```

then add the following just before the `plt.show`

```auto
grid['lon'].set_ticks_visible(False)
grid['lon'].set_ticklabel_visible(False)
grid['lon'].set_axislabel('')
grid['lat'].set_ticks_visible(False)
grid['lat'].set_ticklabel_visible(False)
grid['lat'].set_axislabel('')

```

That should make it disappear.

---

<div class="post-metadata">

**Author:** ![khlystova](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/khlystova/32/564_2.png) [@khlystova](https://community.openastronomy.org/u/khlystova)\
**Post date:** [August 18, 2024, 6:39am UTC](https://community.openastronomy.org/t/question-about-disabling-axis-labels/1077/3 "2024-08-18T06:39:41Z")

</div>

Nabil, thank you very much, it works!
