histogram: the min/max setting in -T is ignored when -R is set
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c
- Ambito
- data-visualization
Direzione di ricerca
Start by tracing how gmt histogram handles -T bin boundaries together with -R range settings; the issue provides reproducible commands using @v3206_06.txt. Check the behavior both for separate histogram commands and within gmt subplot. Done when the specified -T min/max determine the bins despite -R, and the second histogram's range history does not unexpectedly affect the first or later plot.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The issue was initially reported in https://github.com/GenericMappingTools/pygmt/pull/4988#issuecomment-7068207682 by @yvonnefroehlich.
As per the documentation of -T:
Make evenly spaced array of bin boundaries from min to max by inc.
So, I expect the following commands should produce the same bins but with different ranges:
gmt begin hist png
gmt histogram @v3206_06.txt -T-5000/1000/250 -W1p -Baf -Xw+1c
gmt histogram @v3206_06.txt -T-5000/1000/250 -R-7000/1000/0/0 -W1p -Baf -Xw+1c
gmt end show
but the output is:
it seems the min/max settings in -T is override by min/max in -R.
Another possible issue/limitation is, when two histograms are drawn, it seems the -R history of the first histogram will affect the 2nd histogram:
This can be verified by switching the order of the two histogram commands in the above script. It produces:
The issue doesn't exist if drawing the two histograms using gmt subplot:
gmt begin hist png
gmt subplot begin 1x2 -Fs10c/10c
gmt histogram @v3206_06.txt -T-5000/1000/250 -W1p -Baf -c
gmt histogram @v3206_06.txt -T-5000/1000/250 -R-7000/1000/0/0 -W1p -Baf -c
gmt subplot end
gmt end show
The output is:
The first issue should be easy to solve with help from Claude, but the 2nd issue is likely more difficult.
- Lingua principale
- C
- Stelle
- 997
- Fork
- 420
- Merge medio
- 13h 27m
- PR unite (30g)
- 47
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GenericMappingTools/gmt
-
Add support for SCM 9.0.0 to GMTForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
GenericMappingTools/gmt#9316 · 10 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
GenericMappingTools/gmt#5767 · 15 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
GenericMappingTools/gmt#9343 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
GenericMappingTools/gmt#9331 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Windows CI: a 1-row netCDF grid is read back with a collapsed y range (test/grdtrend/trend_xy_plot.sh)Forse già presa @Esteban82 l’ha presa 43 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
GenericMappingTools/gmt#9261 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di GenericMappingTools/gmt
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
libsndfile/libsndfile#1239 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100