Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/jupyterviz/examples/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 16.7.2022 mit Größe 835 B image not shown  

Quelle  03dataseries.md   Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]


# Two data series on the same plot

Let's combine the previous two examples (regardless of whether
that's mathematically useful).  Let's pretend you wanted to
compare the number of divisors of $n$ with the number of groups of
order $n$ for the first 50 positive integers $n$.

To do so, take each call you would make to `Plot` to make the
separate plots, and place those arguments in a list.  Pass both
lists to `Plot` to combine the plots, as shown below.  You can put
the options record in either list.  Options specified earlier take
precedence if there's a conflict.

```
# We're combining Plot( [1..50], NrSmallGroups );
# with Plot( [1..50], n -> Length( DivisorsInt( n ) ) );
Plot( [ [1..50], NrSmallGroups,
        rec( title := "Comparison", tool := "anychart" ) ],
      [ [1..50], n -> Length( DivisorsInt( n ) ) ] );
```


[ Dauer der Verarbeitung: 0.38 Sekunden  ]