History log of /external/trappy/tests/trappy/plotter/StaticPlot.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e81fdcb135d0325e3bc22fae0583555d20aae280 04-Jan-2017 Brendan Jackman <brendan.jackman@arm.com> Update ARM Ltd. copyright to 2017
/external/trappy/trappy/plotter/StaticPlot.py
e6274bd2296229dae5303df8b4226601cc4abdb6 04-Jul-2016 Javi Merino <javi.merino@arm.com> ILinePlot: only pass the necessary data when xlim is passed

xlim limits the x axis to a given range, but for ILinePlot we pass all
the data to dygraph and then let dygraph apply the window. That means
that we include a lot of useless data in the notebook and we lose
performance parsing data that will never be plotted.

Improve xlim for ILinePlot so that it only embeds the data relevant for
the plot.
/external/trappy/trappy/plotter/StaticPlot.py
35e40457aa97167d333835c796d77b7404014b83 06-Jan-2016 John Pocock <john.pocock@arm.com> plotter: Let static plotters define custom colors

Add the ability to set custom colors as a list of rgb values by
setting the colors kwarg for LinePlot. E.g. colors=[[255,0,0]] for a
red line.
/external/trappy/trappy/plotter/StaticPlot.py
0121e7156c2f9cc25637b206a6c2827a24ea782b 01-Jun-2016 Michele Di Giorgio <michele.digiorgio@arm.com> StaticPlot: pass xlim and ylim through to matplotlib

In Static plots, xlim and ylim were ignored causing the user to not see the
effect of setting limits to X and Y axes.

Also, an example of usage of those parameters is added to the Plotter notebook
as a reference on how to use them.

Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
/external/trappy/trappy/plotter/StaticPlot.py
4f4b18adce159f73b112ab789d695918ba45ef2f 29-Mar-2016 Javi Merino <javi.merino@arm.com> plotter: fix references to FTrace

With the introduction of BareTrace and SysTrace, there are a number of
references in the documentation to FTrace that should be more generic,
as classes operate on any of the three *Trace classes. Update some of
the documentation to reflect this.
/external/trappy/trappy/plotter/StaticPlot.py
b8d89134b5ea7157b5b77f7907f569dff955fa1b 01-Mar-2016 Javi Merino <javi.merino@arm.com> plotter: improve documentation

The first parameter is called "traces" for all the plotter. Also,
clarify the wording so that it's clear that it accepts one trace or a
list of traces.
/external/trappy/trappy/plotter/StaticPlot.py
6b7add538125171d58e9569025062c21dc4d2923 26-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: set plot background to white and legend to light grey
/external/trappy/trappy/plotter/StaticPlot.py
29a12bb53910915378e5fa9b3c1cf35fbe8cfec7 26-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: fix legend and title to show correct labels

Title of each plot shows the name of the trace of the name of the column when
using permute. The reason is that the correct behaviour for permute is to plot
all columns of a given trace in a single plot.
/external/trappy/trappy/plotter/StaticPlot.py
99afffa3870fcc68ac895fa58ff99e8043ff34db 26-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: fix data plotted when selecting permute option

The correct behaviour when permute is set to True is to show one plot per
trace and in each plot display the data corresponding to all the columns
specified by the user.

The data is represented in a specific axis based on computations on the index
of each (constraint, pivot) pair. In order to show the right traces in the
correct plot, we order the constraints based on two keys: the column from
where to get the data, and the name of the trace.
/external/trappy/trappy/plotter/StaticPlot.py
b24eed7a902022c014c61f7c8c3061adf53f4eac 25-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: create uniform title style for every type of plot

A uniform style for printing plots titles is added. The final figure
will show the following titles:

- Master Title: empty by default. This is the title of the entire
plot. Shown at the top center of the figure if the user
provides it.

- Pivot/Column Title: title of each plot is empty by default. It shows
pivot names if any pivot is specified by the user.
Otherwise, it shows column names if permute is set
to True.

For interactive plots the title given by the user was ignored and
therefore not shown in the plot. Therefore, the proper attribute has
been added to the class and it's now printed in the figure.
/external/trappy/trappy/plotter/StaticPlot.py
9b4898aa3ea40f2af85157af65ab491e8aaa9b4c 19-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: always show lower centered legend

For both static and interactive plot show the legend below the plots and
centered with respect to the area occupied by the figures.

Static plots will show three labels per line in the legend by default.
This default value can be changed by setting the legend_ncol parameter
to the desired value. Notice also that the legend is shown in any case even
for a single trace. Since the trace name will now always appear in the legend,
in the next commits it will be removed from the title.

Interactive plots will show the legend with a single label per line, as there
is no option in javascript to tell the maximum number of labels that can be
printed in one line.
/external/trappy/trappy/plotter/StaticPlot.py
e64d9ea504aa77d9cc0aeeb481f38551ca802294 15-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: make_title show trace name only for single trace plots

The make_title function now prints the trace name only when needed, that
is when a single trace is being plot. In fact, in this case there will
be no legend and it is good to let the reader know which trace is shown
by putting its name in the title. On the contrary, where there are more
traces, the legend is generated and therefore putting names in the title
becomes redundant.
/external/trappy/trappy/plotter/StaticPlot.py
d7faba52d9846ed0877c74ee7274bdf43191e5e2 15-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: move legend below graph

Legend has been moved below the graph for better readability and because
it sometimes overlapped with figure title.

Labels in the legend can now span 3 columns, i.e. up to 3 labels are
shown horizontally inside the legend. If there is a fourth label, it
will wrap to the a new row.

In addition, 'borderaxespad=0.' is needed to avoid the legend being
cut off from the figure.
/external/trappy/trappy/plotter/StaticPlot.py
9370a6c1aea18da10bacf1b056daeff2dcc42527 15-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: fix column shown in title

When using permute, each subplot title should show only the name of the
column related to the data being plotted. In order to achieve this it is
enough to just print the column taken from the constraint.
/external/trappy/trappy/plotter/StaticPlot.py
b42593d6a0cabfc64d415820c682f652b70acb64 12-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: cleaner Plot when a single run is in use

close #83
/external/trappy/trappy/plotter/StaticPlot.py
db946502d4c9752ab5aad1b3eef64d2efc7a783e 12-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: StaticPlot: remove legend when plotting a single trace
/external/trappy/trappy/plotter/StaticPlot.py
f4dbd1a60d428b70ea8fc1f05f59343d1db4900c 15-Jan-2016 John Pocock <john.pocock@arm.com> Changed templates=None to templates in StaticPLot
/external/trappy/trappy/plotter/StaticPlot.py
287241040f9f8c58399f97412383efb36324c63d 13-Jan-2016 John Pocock <john.pocock@arm.com> Combined StaticPlot _resolve and _resolve_concat

_resolve and _resolve_concat methods have been merged by using a few
conditional assignments. The code is now a lot shorter with less
duplication.
/external/trappy/trappy/plotter/StaticPlot.py
5d35796164c77d1350b7dc26329fb0d0abc549b5 13-Jan-2016 John Pocock <john.pocock@arm.com> Refactored StaticPlot._resolve_concat and removed LinePlot.plot

Refactored _resolve_concat to be like _resolve and removed the need for
the plot method in LinePlot. Now implementing more static plots should
be simpler and the number of series on an axis can be known before
plotting which will be useful e.g. for bar plots.
/external/trappy/trappy/plotter/StaticPlot.py
43337fc13fc45d887ad7f27c23ed684d56363d0a 13-Jan-2016 John Pocock <john.pocock@arm.com> Moved the default fill from StaticPlot to LinePlot
/external/trappy/trappy/plotter/StaticPlot.py
66d4e90b9b9fa5db544e4154505e97f8db562aa2 13-Jan-2016 John Pocock <john.pocock@arm.com> Refactred to group series (constraints) on each axis

This is usefull for plots where you need to know the number of series on an axis
beforehand e.g. a bar plot.

Also, the title is now set in the subclass (LinePlot) allowing a specific plot to
easily modify the titles if needed.

Old plot method has been left until _resolve_concat is modified to use plot_axis.
/external/trappy/trappy/plotter/StaticPlot.py
2c3ca82c4b1c8ee6d6e37718696c4b422fe824c4 12-Jan-2016 John Pocock <john.pocock@arm.com> Refactored _plot (now _resolve) in StaticPlot

Refactored the function to make it shorter and more readible. Also now making
it now possible to create a list of tuples containing all related information
e.g. the data to plot, axis and title. This could be used to handle plots in
a subclass and will hopefully make code more reusable with interactive plots.
/external/trappy/trappy/plotter/StaticPlot.py
d098bd5d11b3305a66c13c705aba65879e7f3adc 11-Jan-2016 John Pocock <john.pocock@arm.com> Started simplifying using constraints in custom plots

Moved the loops over pivots and constraints to an abstract class for lineplot. Now a specific static (matplotlib) plot can just implement a short plot method for plotting one series on an axis which is called from the parent.
/external/trappy/trappy/plotter/StaticPlot.py