Skip to content

Commit fb0804b

Browse files
committed
New way to present ROOT examples in a gallery
1 parent f8f43f5 commit fb0804b

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

_includes/example-list

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{% assign tutorials_list = page[include.id] %}
2+
{% assign ref_guide_url = "https://root.cern/doc/master/" %}
3+
4+
<table id="navtable">
5+
{% assign i = 0 %}
6+
{% for tut in tutorials_list %}
7+
{% if i==0 %}
8+
<tr>
9+
{% endif %}
10+
<td>
11+
<a href="{{ ref_guide_url }}{{ tut.example | replace: '.C', '_8C'}}.html">
12+
<img src="{{ ref_guide_url }}pict1_{{ tut.example }}.png" >
13+
</a>
14+
<em>
15+
{% if tut.title %}{{ tut.title }}{% endif %}
16+
</em>
17+
</td>
18+
{% if i==2 %}
19+
</tr>
20+
{% endif %}
21+
{% assign i = i | plus:1 %}
22+
{% if i==3 %}
23+
{% assign i = 0 %}
24+
{% endif %}
25+
{% endfor %}
26+
{% if i!=0 %}
27+
</tr>
28+
{% endif %}
29+
</table>
30+

gallery/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ title: Galleries of images produced with ROOT
33
layout: single
44
toc: true
55
toc_sticky: true
6+
list1:
7+
- example: thstackcolorscheme.C
8+
title: This example demonstrates how to use the accessible color schemes with THStack.
9+
- example: ratioplot1.C
10+
title: Example creating a simple ratio plot of two histograms using the pois division option.
11+
- example: fillrandom.C
12+
title: Fill a 1-D histogram from a parametric function.
13+
list2:
14+
- example: annotation3d.C
15+
title: This example show how to put some annotation on a 3D plot using 3D polylines.
16+
- example: exclusiongraph.C
17+
title: Draw three graphs with an exclusion zone.
18+
- example: graphShade.C
19+
title: Show how to shade an area between two graphs
620
gallery1:
721
- url: /gallery/higgs_plots/Atlas_CLs_Exclusion.png
822
- url: /gallery/higgs_plots/Atlas_Data_MC_Comparison.png
@@ -125,6 +139,19 @@ gallery5:
125139
- url: /gallery/visualisation_techniques_and_basics_graphics/Two_legos_plots_combined.gif
126140
---
127141

142+
## Simple examples - UNDER CONSTRUCTION
143+
144+
Overview of various common functionalities provided by ROOT
145+
146+
### Histograms Examples
147+
148+
{% include example-list id="list1" %}
149+
150+
### Graphs Examples
151+
152+
{% include example-list id="list2" %}
153+
154+
128155
## Higgs Plots
129156

130157
This gallery shows some of the plots (produced using ROOT) presented when the Higgs boson

0 commit comments

Comments
 (0)