|
From: Raymond T. <toy...@gm...> - 2025-07-07 23:19:56
|
On 7/7/25 2:44 PM, Stavros Macrakis wrote: > Anyway, what I would prefer /instead/ of coloring would be better > indentation, to make it easy to see the structure. In this example: > > (%i1) set_plot_option ([grid, 30, 40]); (%o1) [[plot_format, > gnuplot_pipes], [grid, 30, 40], [run_viewer, true], [axes, true], > [nticks, 29], [adapt_depth, 5], [color, blue, red, green, magenta, > black, cyan], [point_type, bullet, box, triangle, plus, times, > asterisk], [palette, [gradient, green, cyan, blue, violet], [gradient, > magenta, violet, blue, cyan, green, yellow, orange, red, brown, > black]], [gnuplot_preamble, ???], <<< should be *""*[gnuplot_term, > default]] Sadly, *grind*, which you might think could produce this, > does not. That is certainly nicer. Not sure how we can make this happen since it's just a regular Maxima list. We don't have the lisp concept of a pprint-dispatch table for printing Maxima objects. If we did and if we made the plot options a structure or some other unique thing, we could print it nicely. The funny value for gnuplot_preamble is because |stringdisp| defaults to |false|. Long ago I used to set |stringdisp| to |true| in my init file, but that caused other weird things to happen so I stopped doing that. Perhaps it would be good to set |stringdisp| to true and fix the quirks. I don't remember what they were though. > > On Mon, Jul 7, 2025 at 5:38 PM Stavros Macrakis <mac...@gm...> > wrote: > > Ah, that does look terrible. I guess the idea was that > command-like symbols (plot_format, grid, etc.) would be > highlighted differently from arguments. But why are box and > triangle in command color? > > I'm not a huge fan of syntax colorization, and if it's got to be > done, why are we using such garish colors? > > Anyway, what I would prefer /instead/ of coloring would be better > indentation, to make it easy to see the structure. In this example: > > (%i1) set_plot_option ([grid, 30, 40]); > (%o1) [[plot_format, gnuplot_pipes], [grid, 30, 40], > [run_viewer, true], [axes, true], [nticks, 29], [adapt_depth, 5], > [color, blue, red, green, magenta, black, cyan], > [point_type, bullet, box, triangle, plus, times, asterisk], > [palette, [gradient, green, cyan, blue, violet], > [gradient, magenta, violet, blue, cyan, green, yellow, orange, > red, brown, black]], [gnuplot_preamble, ], [gnuplot_term, default]] > > > On Mon, Jul 7, 2025 at 4:52 PM Jaime Villate via Maxima-discuss > <max...@li...> wrote: > > > On 07/07/25 21:25, Raymond Toy wrote: >> >> On 7/7/25 12:48 PM, Jaime Villate via Maxima-discuss wrote: >> >>> Hello, >>> >>> The syntax coloring in the HTML version of the manual seems >>> very odd to me. Some random keywords appear in red or blue. >>> In my opinion, it would look better without any coloring at >>> all. >> >> Can you point out an example of this? >> >> > Sure, look at the attachment. > > Regards, > > Jaime > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > ​ |