Skip to content

Layout: Make going to and from plt.Frameless() more discoverable #3106

@angulion

Description

@angulion

Improve documentation or add method

Feature description:
Having a plot that I needed to take a picture of, without anything extra I discovered plt.Frameless();
There however did not seem to be any apparent way of going back to default layout.
Through looking at source I found plt.Frameless(false); did the trick.
Scott was very helpful on Discord, as always, and suggested I make this ticket and also wrote:
I think we could make it more discoverable somehow (and better documented in the cookbook)
Maybe we could put layout helper methods in a class so they're grouped together like:

Plot.SetLayout.Automatic();
Plot.SetLayout.Frameless();
Plot.SetLayout.Fixed(dataRect);
// a code sample may improve communication
var plt = new ScottPlot.Plot();
plt.Frameless();
// do something
plt.SaveFig("myMeme.png");
// ....
plt.Frameless(false); // or
plt.Automatic(); // that would do the above, reset padding if it was manually set etc.

Metadata

Metadata

Assignees

No one assigned

    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