Skip to content

Instantly share code, notes, and snippets.

@artyom-poptsov
Last active July 12, 2023 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artyom-poptsov/a2311b45b9be520c9c1e952e6170054b to your computer and use it in GitHub Desktop.
Save artyom-poptsov/a2311b45b9be520c9c1e952e6170054b to your computer and use it in GitHub Desktop.
Plot Marlin Universal Bed Leveling values with Gnuplot
set title "Marlin UBL mesh values"
set xlabel "X"
set ylabel "Y"
set zlabel "Z"
set grid
set label 1 "XY HOME" textcolor 'red' offset -5,0 at -1,8,-1.4 point pt 18 lc rgb 'red'
set label 1 front
set palette defined (-1.0 "#31a354", -0.1 "#a1d99b", 0 "white", 0.1 "#9ecae1", 1.0 "#3182bd")
set pm3d map
set size square
set palette rgbformulae 22,13,-31
plot ARG1 matrix with image notitle, \
ARG1 matrix using 1:2:(sprintf('%.2f', $3)) with labels notitle
# splot ARG1 matrix with pm3d notitle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment