Better handling of custom plot aspect

Open
#396 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
matplotlib, python

Research direction

Start by reproducing the reported EIS data cube plots with eiscube.plot() and eiscube.plot(aspect=0.1) using the stated NDCube 2.0-pre and matplotlib 3.3.4 versions. Trace how the custom aspect is handled and identify the expected behavior from the existing plot output and comment discussion. Done means custom aspect values produce a useful, correctly scaled plot.

Written by the indexing model from the issue text.

Description

Plotting an EIS data cube produces the following plot on the left, which is not very helpful. In an attempt to improve matters, I used eiscube.plot(aspect=0.1), which is shown on the right, which is even worse!
Screenshot 2021-02-08 at 20 48 42 Screenshot 2021-02-08 at 20 49 00
It looks like there needs to be some cleverer handling of custom plot aspects.

This is on NDCube 2.0-pre, and matplotlib 3.3.4

Dominant language
Python
Stars
49
Forks
56
Avg merge
5h 54m
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunpy/ndcube

All issues in sunpy/ndcube

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.