gnuplot - How to set the origin to O and remove the zero labels in Maxima draw? -


Maxima has several settings for controlling the Draw (2D) function axis, but as far as I can tell, none hides the zero label of the Xy-axis and to replace it with any 0 or o.

Maybe it is possible to use the option with user_preamble?

You can specify the xtics and ytics values Form, and the label to be labeled

  load (draw) $ draw2d (user_preamble = "zero axis lintip 5; Set exticks axis; set ytics axis; set range 0; ", xtics = {- 3, -2, -1, 1, 2, 3}, ytics = {- 1, -1/2, 1/2, 1} , Label (["hey", 0, 0]), clear (sin (x), x, -% pi,% pi) $  

You zoom the label coordinates If you do not want to show the original label right on the crossroads in the example above, label (["O", 0,0]) with the label (["O" -0.15, 0.1])

Enter image details here


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -