Skip to content

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

Closed

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?

Activity

  1. added
    bug
    on Sep 5, 2023
  2. added this to the 6.5.0 milestone on Sep 5, 2023
  3. self-assigned this
    on Sep 5, 2023
  4. seisman commented on Sep 5, 2023

    @seisman
    Member

    Yes, I can reproduce the issue, but have no idea why it doesn't work. In the verbose messages, I see

    GMT_Parse_Options: New option order: t.txt -Sc2p -W1p -V -Xa0i -Ya3.4511i -R-2/2/-2/2 -JX15c/15c -Bxaf -Byaf -BWrtS
    

    Does -JX15c/15c makes sense here?

  5. PaulWessel commented on Sep 5, 2023

    @PaulWessel
    ContributorAuthor

    Does -JX15c/15c makes sense here?

    No. That is odd. I will study the -Vd log to see what else is happening.

  6. PaulWessel commented on Sep 5, 2023

    @PaulWessel
    ContributorAuthor

    Nothing to see here - looping over 16 panels when there are only 15...
    Sorry, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions