Skip to content

Confused about the Offset option #36

@NathanBaulch

Description

@NathanBaulch

I'm a bit confused about the meaning of the Offset option.

for i := 0; i < 10; i++ {
	println("offset", i, ":", Plot([]float64{0}, Offset(i)))
}
offset 0 :  0.00 ┼
offset 1 : ┼
offset 2 :  0.00┼
offset 3 :  0.00 ┼
offset 4 :  0.00  ┼
offset 5 :  0.00   ┼
offset 6 :   0.00   ┼
offset 7 :    0.00   ┼
offset 8 :     0.00   ┼
offset 9 :      0.00   ┼

This is pretty odd behavior that raises a few questions. Is the purpose of this option to add space before or after the y-axis label? It seems to do a bit of both in an inconsistent way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions