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

Plotting variables: `getvars` access & more flexible `setvars`

Đang mở
#93 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 7/4/2025.

Đánh giá

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

Mô tả

enhancement

Currently we have a function setvars which can be used to set plotting variables. However, there is no direct user-facing way to access/view those stored plotting variables to see what is defined, which is particularly unhelpful when any future call to setvars will reset any values set back to the defaults, and we may want to retain anything set to non-default values (such as in the test suite, where I have a decorator to store the output plot under a certain name to enable image-based comparison but test often call setvars themselves - though it will be useful for many common user-aligned reasons I can foresee as well).

So, we should make it easy to both:

  1. access/get the set plotting variables, notably with a function getvars analogous to setvars to return them as a dictionary; and
  2. set new plotting variables with setvars without setting anything not input there to the default i.e. editing any variables defined in the call without changing any other values.

(1) is priority since the latter could be achieved by inputting the former as kwargs to setvars along with any values to change, but that is a bit clunky as the ideal overall solution to (2).

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.