Skip to content

Plot.Frameless() does not result in a plot covering the full bitmap area #1605

@swharden

Description

@swharden

There should be no magenta frame around this image...

var plt = new ScottPlot.Plot(300, 200);
plt.AddSignal(ScottPlot.DataGen.Sin(51));
plt.AddSignal(ScottPlot.DataGen.Cos(51));
plt.Style(figureBackground: System.Drawing.Color.Magenta);
plt.Frameless(true);
plt.SaveFig("demo.png");

demo

Discussed in #1571

Originally posted by sjlai1993 January 18, 2022

Details Hi,

I have meet with an issue with the plot area of my graph. I have set the X axis limit to start from 0, however the plot will show a slight margin at the start of the plot. When using the crosshair function, the mouse coordinate will return a value of X that is lesser than 0.

It there some settings I have done incorrectly?

Screenshot 2022-01-18 134201

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions