-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please Allow Users to Change the Background Color to White Using the Plot or Better QuickPlot Module Functions #6
Comments
This is supported but I don't have any examples in the repo showing how to use it. The Lines 118 to 119 in 5b7e70e
They can be selected and loaded with with these functions: Lines 225 to 238 in 5b7e70e
An example of how this can be used with the let pre () = Plot.load_palette (Plot.indexed_palette "cmap0_alternate.pal");;
let stream = Plot.init ~filename:"test.png" ~pre (0.0, -2.0) (10.0, 2.0) `equal (`png `cairo);;
Plot.plot ~stream [Plot.func `black sin (0.0, 10.0)];;
Plot.finish ~stream ();;
Plot.end_stream ~stream ();; That should produce this output: There are a number of palettes provided by the PLplot library in A few of the |
Also - apologies for taking so long to respond! I hope the description above is still helpful. |
The default color scheme (black background with red curves) is visually unappealing. Every other plotting library seems to default to a sensible white background with black curves. Please allow developers to change the background color using the QuickPlot and the Plot modules. Doing so will not break backward compatibility and will vastly improve the visual quality of the output.
Thanks
The text was updated successfully, but these errors were encountered: