Skip to content

Changing azimuth affects xshift #1808

Description

@KeithWM

Hi all! Thanks for the fascinating package, I've been having great fun creating a novel way of projecting our beautiful earth onto a computer screen.

I do, however, get some strange behaviour when adjusting the azimuth in a gnomonic projection.

begin
	GMT.plot(; 
		x=[0 0], 
		y=[0 0], 
		figsize=1, frame=:none,
	)
	for azimuth in [0, 0, 90, 90, 0]
		coast!(;
			region=:g, 
			proj=(
				name=:Gnomonic, 
				center=(180, 0), 
				horizon=60
			),
			ocean=:cyan,
			view=(azimuth, 90),
			figsize=3,
			xshift=(shift="3"),
			yshift=(shift="0"),
		)
	end
	showfig()
end

I would expect this code to result in five circles on a row, each just touching. However, I get:

Image

When the next circle has the same azimuth as the first, everything is fine, but when going from 0 to 90, the xshift is larger and there is also a positive yshift. When going from 90 to 0, the error seems to be inverted. I also tried with -90 instead of +90 and the result is identical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions