Skip to content

Hickup in subplots messes up on panel and missing the last #7787

@PaulWessel

Description

@PaulWessel

I was testing a loop/subplot script to explore how to automatically set the line width in symbols that are not filled (e.g., crossed) but ran into this bug:

#!/usr/bin/env bash
# Test automatic pen selection via size for symbols, such as cross
# that are not filled but stroked.
gmt begin line_symbols png
	gmt set GMT_THEME cookbook
	echo 0	0 > t.txt
	gmt subplot begin 5x3 -Fs5c -R-2/2/-2/2 -Srl -Sct -A
	for size in 2p 4p 6p 8p 10p 12p 14p 16p 18p 20p 22p 24p 26p 28p 30p 32p ; do
		gmt subplot set -A${size}
		gmt plot t.txt -Sc${size} -W1p -V
	done
	gmt subplot end
gmt end show

Bituce the two symbols in row 3 col 1 and the missing label at the last:

line_symbols

I get these errors:

gmt [ERROR]: Selected current panel (5,0) exceeds dimension of current subplot (5x3)
gmt [ERROR]: Note: Subplot panel first index starts at 0 or 0,0
subplot [ERROR]: Selected current panel (5,0) exceeds dimension of current subplot (5x3)
subplot [ERROR]: Note: Subplot panel first index starts at 0 or 0,0
subplot [ERROR]: No subplot information file!
end [WARNING]: subplot was never completed - plot items in last panel may be missing

Can you replicate? Ideas?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions