Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Missing x axis labels for multiple line plot

Đang mở
#104 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@sadielbartholomew đang làm issue này rồi.

Từ ngày 15/4/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug

For a multiple line plot created in the standard means via calling cfp.lineplot more than once wrapped inside the gopen and gclose calls, where the lines to be plotted have ranges that don't overlap, the only x axis labels shown are the ones for the data from the final call.

We should make it default behaviour that the overall lineplot axis covers the full extent of all input data, without the user having to manually specify this (if that's even possible via cfplot configuration - I am yet to have time to investigate).

MRE

Adapted from a user report (from SG). To reproduce you need data files that contain the same variable with non-overlapping ranges of data, a common example being sequential time windows as here.

MRE code
cfp.gopen()

for file in files:
    c1 = cf.read(file)
    d1 = c1.select('ncvar%zostoga')[0]
    cfp.lineplot(d1)

cfp.gclose()
Output lineplot

Note the lack of x axis labelling for all but the final file variable data input:

Image

Ngôn ngữ chính
Python
Star
21
Fork
11
Merge trung bình
7 giờ 11 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCAS-CMS/cf-plot

Tất cả issue của NCAS-CMS/cf-plot

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.