Clarify scatter plot support via alias & example(s)

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data-visualization

Hướng nghiên cứu

Read the lineplot implementation and docstring to see how lines=False and keyword arguments are handled, then find the documentation examples for plotting. Add the scatter alias, clarify the docstring, and include a scatter plot example. Done when the alias produces a scatter-only plot and the documentation shows how to use it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

A user requested that we support, natively in cf-plot, a means to produce a scatter plot. This is a natural complement to a lineplot that scientists and data/software technical professionals etc. often want to create, so is a major plot type to support.

It happens that we do support this but in a way that isn't obvious: one must call cfp.lineplot with lines=False set. So I suggest we do the following:

  • update the lineplot docstring to clarify that scatter plots are also in scope with that function, ideally with some 'example' code snippets at the end;
  • add a plotting method scatter which calls lineplot with all of the equivalent kwargs but with lines=False set so it creates not a line (with optional scatter-like markers) plot but a scatter-only plot;
  • add an explicit example to the documentation to showcase the means to create a scatter plot.
Ngôn ngữ chính
Python
Star
21
Fork
11
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
9

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.