Skip to content

Commit f56977e

Browse files
committed
Add axis title examples
1 parent 2a5dd82 commit f56977e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demo/examples.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
{ "name": "xaxis_N", "opt": "xaxis_ff00ff", "title": "draw histogram X axis with color N - index or name like 'green' or hex like ff00ff" },
4545
{ "name": "yaxis_N", "opt": "yaxis_00ff0055", "title": "draw histogram Y axis with color N - index or name like 'green' or hex like 00ff0055" },
4646
{ "name": "htitle", "opt": "htitle:Custom%20histogram%20title", "title": "Change histogram title" },
47+
{ "name": "xtitle", "opt": "xtitle:Custom%20X%20axis%20title", "title": "Change X axis title" },
48+
{ "name": "ytitle", "opt": "ytitle:y_{axis}%20title", "title": "Change Y axis title" },
4749
{ "opt": "inspect", "asurl": true, "file": "hsimple.root", "item": "hpx;1", "title": "universal object inspector, can be used for any class" },
4850
{ "name": "docu", "file": "histpainter6.root", "layout": "vert32", "items": ["two_axis","draw_e1","draw_bar","draw_e34","draw_text"], "title":"several TH1 examples from THistPainter documentation" },
4951
{ "name": "twoscales", "url": "nobrowser&file=$$$tutorials_hist.root&item=[twoscales/[1],twoscales/[3]]&opt=[hist,yaxis_red;line_red;y+]", "title": "interactive second Y scale to draw axis for second histogram" },
@@ -104,6 +106,7 @@
104106
{ "opt": "chord", "title": "Chord diagram as it is implemented by d3.js, see https://observablehq.com/@d3/chord-diagram" },
105107
{ "opt": "allbins", "title": "draw underflow/overflow bins" },
106108
{ "name": "xyticks", "opt": "xticks:[-3.8,-1.5,1.5,3.8];yticks:[-3.3,-1.1,1.1,3.3]", "title": "configure custom x and y ticks positions" },
109+
{ "name": "ztitle", "opt": "colz;ztitle:Z^{axis}%20title;nostat", "title": "Color plot with custom Z title" },
107110
{ "name": "pol", "opt": "lego2;pol", "title": "Polar coordinates for lego plots" },
108111
{ "name": "cyl", "opt": "lego2;cyl", "title": "Cylindrical coordinates for lego plots" },
109112
{ "name": "sph", "opt": "lego2;sph", "title": "Sphere coordinates for lego plots" },

0 commit comments

Comments
 (0)