Skip to content

improve support for Linux and macOS #211

@hexxone

Description

@hexxone

Hi there,

I was trying to get this Library working under a .net core 2.1 app on my ubuntu 18.04 server.
During this process I was getting some weird errors which were eventually boiled down to being the exact same issue like THIS

On this line: https://github.com/swharden/ScottPlot/blob/bbfa3f5d8264338814c946aaaee955f2c082313a/src/ScottPlot/Config/TextLabel.cs#L25

If I understood correctly, the usage of "FromHwnd" will basically invoke some code which requires a graphical interface to be present. As my server is purely a "backend" I dont really want to install an x-server just for plotting some graphs. This would be my last resort...

I am not familar with the Details, but as the solution on stackoverflow suggest, might there be a way to use Graphics.FromImage() at this place without any loss of funtionality?

I think this would greatly benefit cross-platform compatibility :)

Thanks in advance.

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