Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#93 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@sadielbartholomew ya está trabajando en esto.

Desde el 7/4/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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).

Lenguaje dominante
Python
Estrellas
21
Forks
11
Merge medio
7 h 11 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NCAS-CMS/cf-plot

Todos los issues de NCAS-CMS/cf-plot

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.