JuliaPy / JuliaPy/PythonPlot.jl

How can I use gridspec?

Ouverte
#50 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Julia
Étoiles
85
Forks
9
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Could anyone show me how to use gridspec?
```jl
fig = figure();
gs = fig.add_gridspec(2,2);
ax1 = fig.add_subplot(gs[0,0]); # this works
ax2 = fig.add_subplot(gs[1,0:1]); #This does not work
```
I get the following error:
```jl
ERROR: Python: TypeError: '<' not supported between instances of 'range' and 'int'
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by reproducing the shown `fig.add_gridspec` and `fig.add_subplot` calls, especially the `gs[1,0:1]` expression, and inspect how these entry points handle Julia indexing before the Python call. Done means determining whether the usage is supported and documenting or correcting the behavior with a regression test.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
matplotlib
Domaine
data-visualization
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.