Home
last modified time | relevance | path

Searched refs:plot (Results 1 – 25 of 157) sorted by relevance

1234567

/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/
DXYPlotTest.java50 XYPlot plot; // testing field in XYPlotTest
65 plot = new XYPlot(null, "test"); in setUp()
78 plot.addSeries(series1, new LineAndPointFormatter()); in testOriginFixedMode()
79 plot.centerOnDomainOrigin(5, 2, BoundaryMode.FIXED); in testOriginFixedMode()
80 plot.calculateMinMaxVals(); in testOriginFixedMode()
83 assertEquals(3.0, plot.getCalculatedMinX()); in testOriginFixedMode()
84 assertEquals(7.0, plot.getCalculatedMaxX()); in testOriginFixedMode()
89 plot.addSeries(series1, new LineAndPointFormatter()); in testOriginAutoMode()
90 plot.centerOnDomainOrigin(5); in testOriginAutoMode()
91 plot.calculateMinMaxVals(); in testOriginAutoMode()
[all …]
DXYLegendWidgetTest.java74 XYPlot plot = new XYPlot(context, "Test", Plot.RenderMode.USE_MAIN_THREAD); in testDoOnDraw() local
79 plot.addSeries(s1, new LineAndPointFormatter( in testDoOnDraw()
82 assertEquals(1, plot.getSeriesSet().size()); in testDoOnDraw()
84 Deencapsulation.invoke(plot, "onSizeChanged", 100, 100, 100, 100); in testDoOnDraw()
85 plot.redraw(); in testDoOnDraw()
88 Deencapsulation.invoke(plot, "onDraw", new Canvas()); in testDoOnDraw()
90 plot.removeSeries(s1); in testDoOnDraw()
91 assertEquals(0, plot.getSeriesSet().size()); in testDoOnDraw()
92 plot.addSeries(s1, new BarFormatter(Color.RED, Color.GREEN)); in testDoOnDraw()
93 plot.redraw(); in testDoOnDraw()
[all …]
DXYSeriesRendererTest.java73 XYPlot plot = new XYPlot(context, "Test"); in testDataToGridCorrelation() local
74 plot.setDomainStepMode(XYStepMode.SUBDIVIDE); in testDataToGridCorrelation()
75 plot.setDomainStepValue(10); in testDataToGridCorrelation()
76 plot.setDomainBoundaries(0, 100, BoundaryMode.FIXED); in testDataToGridCorrelation()
77 plot.setRangeBoundaries(0, 100, BoundaryMode.FIXED); in testDataToGridCorrelation()
78 plot.calculateMinMaxVals(); in testDataToGridCorrelation()
79 …omainStep = XYStepCalculator.getStep(plot, XYAxisType.DOMAIN, gridRect, plot.getCalculatedMinX().d… in testDataToGridCorrelation()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
DPlotTest.java91 public MockRenderer1(Plot plot) { in MockRenderer1() argument
92 super(plot); in MockRenderer1()
107 public MockRenderer2(Plot plot) { in MockRenderer2() argument
108 super(plot); in MockRenderer2()
130 public SeriesRenderer getRendererInstance(MockPlot plot) { in getRendererInstance() argument
131 return new MockRenderer1(plot); in getRendererInstance()
143 public SeriesRenderer getRendererInstance(MockPlot plot) { in getRendererInstance() argument
144 return new MockRenderer2(plot); in getRendererInstance()
186 Plot plot = new MockPlot(context, "MockPlot"); in testAddSeries() local
193 plot.addSeries(m1, new MockFormatter1()); in testAddSeries()
[all …]
/external/chromium-trace/catapult/third_party/flot/
Djquery.flot.crosshair.js70 function init(plot) { argument
74 plot.setCrosshair = function setCrosshair(pos) {
78 var o = plot.p2c(pos);
79 crosshair.x = Math.max(0, Math.min(o.left, plot.width()));
80 crosshair.y = Math.max(0, Math.min(o.top, plot.height()));
83 plot.triggerRedrawOverlay();
86 plot.clearCrosshair = plot.setCrosshair; // passes null for pos
88 plot.lockCrosshair = function lockCrosshair(pos) {
90 plot.setCrosshair(pos);
94 plot.unlockCrosshair = function unlockCrosshair() {
[all …]
Djquery.flot.crosshair.min.js7plot){var crosshair={x:-1,y:-1,locked:false};plot.setCrosshair=function setCrosshair(pos){if(!pos)… argument
Djquery.flot.selection.js82 function init(plot) { argument
102 plot.getPlaceholder().trigger("plotselecting", [ getSelection() ]);
151 plot.getPlaceholder().trigger("plotunselected", [ ]);
152 plot.getPlaceholder().trigger("plotselecting", [ null ]);
165 $.each(plot.getAxes(), function (name, axis) {
177 plot.getPlaceholder().trigger("plotselected", [ r ]);
181plot.getPlaceholder().trigger("selected", [ { x1: r.xaxis.from, y1: r.yaxis.from, x2: r.xaxis.to, …
189 var o = plot.getOptions();
190 var offset = plot.getPlaceholder().offset();
191 var plotOffset = plot.getPlotOffset();
[all …]
Djquery.flot.selection.min.js7plot){var selection={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false};var savedhandle… argument
Djquery.flot.navigate.js126 function init(plot) { argument
128 var c = plot.offset();
132 plot.zoomOut({ center: c });
134 plot.zoom({ center: c });
149 var c = plot.getPlaceholder().css('cursor');
152 plot.getPlaceholder().css('cursor', plot.getOptions().pan.cursor);
158 var frameRate = plot.getOptions().pan.frameRate;
163 plot.pan({ left: prevPageX - e.pageX,
178 plot.getPlaceholder().css('cursor', prevCursor);
179 plot.pan({ left: prevPageX - e.pageX,
[all …]
Djquery.flot.navigate.min.js7plot){function onZoomClick(e,zoomOut){var c=plot.offset();c.left=e.pageX-c.left;c.top=e.pageY-c.to… argument
Djquery.flot.pie.min.js7plot){var canvas=null,target=null,options=null,maxRadius=null,centerLeft=null,centerTop=null,proce… argument
Djquery.flot.pie.js68 function init(plot) { argument
85 plot.hooks.processOptions.push(function(plot, options) { argument
120 plot.hooks.bindEvents.push(function(plot, eventHolder) { argument
121 var options = plot.getOptions();
132 plot.hooks.processDatapoints.push(function(plot, series, data, datapoints) { argument
133 var options = plot.getOptions();
135 processDatapoints(plot, series, data, datapoints);
139 plot.hooks.drawOverlay.push(function(plot, octx) { argument
140 var options = plot.getOptions();
142 drawOverlay(plot, octx);
[all …]
DPLUGINS.md5 putting it in the $.plot.plugins array. For example:
8 function myCoolPluginInit(plot) {
9 plot.coolstring = "Hello!";
12 $.plot.plugins.push({ init: myCoolPluginInit, options: { ... } });
14 // if $.plot is called, it will return a plot object with the
39 plot. It has a single option that control whether it is enabled and
44 function init(plot) {
47 function checkDebugEnabled(plot, options) {
50 plot.hooks.processDatapoints.push(alertSeries);
54 function alertSeries(plot, series, datapoints) {
[all …]
Djquery.flot.resize.js27 function init(plot) { argument
29 var placeholder = plot.getPlaceholder();
36 plot.resize();
37 plot.setupGrid();
38 plot.draw();
41 function bindEvents(plot, eventHolder) { argument
42 plot.getPlaceholder().resize(onResize);
45 function shutdown(plot, eventHolder) { argument
46 plot.getPlaceholder().unbind("resize", onResize);
49 plot.hooks.bindEvents.push(bindEvents);
[all …]
Djquery.flot.resize.min.js7plot){function onResize(){var placeholder=plot.getPlaceholder();if(placeholder.width()==0||placeho… argument
/external/webrtc/webrtc/modules/video_coding/test/
DplotJitterEstimate.m9 plot(x, slopes(x, 1).*(framestats(x, 1) - framestats(x, 2)) + 3*sqrt(randJitters(x,2)), 'b'); title…
10 plot(x, filtjitter, 'r');
11 plot(x, slopes(x, 1).*(framestats(x, 1) - framestats(x, 2)), 'g');
14 plot(x, slopes(x, 1)); title('Line slope');
16 %plot(x, slopes(x, 2)); title('Line offset');
18 plot(x, framestats); plot(x, framedata(x, 1)); title('frame size and average frame size');
20 plot(x, framedata(x, 2)); title('Delay');
23 plot(x, randJitters(x,1),'r');
24 plot(x, randJitters(x,2)); title('Random jitter');
30 plot(dL, delays, '.');
[all …]
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DXYPlotWithBgImgActivity.java19 private XYPlot plot; field in XYPlotWithBgImgActivity
27 plot = (XYPlot) findViewById(R.id.graph_metrics); in onCreate()
33 plot.getGraphWidget().getBackgroundPaint().setColor(Color.TRANSPARENT); in onCreate()
34 plot.getGraphWidget().getGridBackgroundPaint().setShader(WHITE_SHADER); in onCreate()
35 plot.getGraphWidget().getDomainGridLinePaint().setColor(Color.BLACK); in onCreate()
36plot.getGraphWidget().getDomainGridLinePaint().setPathEffect(new DashPathEffect(new float[]{3, 3},… in onCreate()
37 plot.getGraphWidget().getRangeGridLinePaint().setColor(Color.BLACK); in onCreate()
38plot.getGraphWidget().getRangeGridLinePaint().setPathEffect(new DashPathEffect(new float[]{3, 3}, … in onCreate()
39 plot.getGraphWidget().getDomainOriginLinePaint().setColor(Color.BLACK); in onCreate()
40 plot.getGraphWidget().getRangeOriginLinePaint().setColor(Color.BLACK); in onCreate()
[all …]
DXYRegionExampleActivity.java45 private XYPlot plot; field in XYRegionExampleActivity
82 plot = (XYPlot) findViewById(R.id.xyRegionExamplePlot); in onCreate()
150 plot.addSeries(timSeries, timFormatter); in onS1CheckBoxClicked()
153 plot.removeSeries(timSeries); in onS1CheckBoxClicked()
156 plot.redraw(); in onS1CheckBoxClicked()
161 plot.addSeries(nickSeries, nickFormatter); in onS2CheckBoxClicked()
165 plot.removeSeries(nickSeries); in onS2CheckBoxClicked()
169 plot.redraw(); in onS2CheckBoxClicked()
174 plot.addSeries(joeSeries, joeFormatter); in onS3CheckBoxClicked()
176 plot.removeSeries(joeSeries); in onS3CheckBoxClicked()
[all …]
DBarPlotExampleActivity.java61 private XYPlot plot; field in BarPlotExampleActivity
107 plot = (XYPlot) findViewById(R.id.mySimpleXYPlot); in onCreate()
109 selectionWidget = new TextLabelWidget(plot.getLayoutManager(), NO_SELECTION_TXT, in onCreate()
130 plot.setTicksPerRangeLabel(3); in onCreate()
131 plot.setRangeLowerBoundary(0, BoundaryMode.FIXED); in onCreate()
132 plot.getGraphWidget().setGridPadding(30, 10, 30, 0); in onCreate()
134 plot.setTicksPerDomainLabel(2); in onCreate()
153 plot.setOnTouchListener(new View.OnTouchListener() { in onCreate()
254 plot.setDomainValueFormat(new NumberFormat() { in onCreate()
279 Iterator<XYSeries> iterator1 = plot.getSeriesSet().iterator(); in updatePlot()
[all …]
/external/autotest/frontend/tko/
Dgraphing_utils.py207 for plot_index, (plot, color) in enumerate(zip(plots, _colors(len(plots)))):
208 needs_invert = (plot['label'] in plot_info.inverted_series)
214 subplot.set_title(plot['label'])
221 plot['y'] = [-y for y in plot['y']]
227 lines += subplot.plot(plot['x'], plot['y'], label=plot['label'],
232 lines += subplot.plot(plot['x'], plot['y'], _SINGLE_PLOT_STYLE,
233 label=plot['label'])
235 if plot['errors']:
236 subplot.errorbar(plot['x'], plot['y'], linestyle='None',
237 yerr=plot['errors'], color=error_bar_color)
[all …]
/external/skia/src/gpu/
DGrBatchAtlas.cpp120 GrPlotUploader(GrBatchAtlas::BatchPlot* plot, GrTexture* texture) in GrPlotUploader() argument
121 : INHERITED(plot->lastUploadToken()) in GrPlotUploader()
122 , fPlot(SkRef(plot)) in GrPlotUploader()
124 SkASSERT(plot); in GrPlotUploader()
183 inline void GrBatchAtlas::updatePlot(GrDrawBatch::Target* target, AtlasID* id, BatchPlot* plot) { in updatePlot() argument
184 this->makeMRU(plot); in updatePlot()
189 if (target->hasTokenBeenFlushed(plot->lastUploadToken())) { in updatePlot()
190 plot->setLastUploadToken(target->asapToken()); in updatePlot()
191 SkAutoTUnref<GrPlotUploader> uploader(new GrPlotUploader(plot, fTexture)); in updatePlot()
194 *id = plot->id(); in updatePlot()
[all …]
DGrLayerAtlas.cpp112 for (Plot* plot = iter.init(fPlotList, PlotIter::kHead_IterStart); plot; plot = iter.next()) { in resetPlots() local
113 plot->reset(); in resetPlots()
121 void GrLayerAtlas::makeMRU(Plot* plot) { in makeMRU() argument
122 if (fPlotList.head() == plot) { in makeMRU()
126 fPlotList.remove(plot); in makeMRU()
127 fPlotList.addToHead(plot); in makeMRU()
137 Plot* plot = usage->plot(i); in addToAtlas() local
138 if (plot->allocateRect(width, height, loc)) { in addToAtlas()
139 this->makeMRU(plot); in addToAtlas()
140 return plot; in addToAtlas()
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
DSeriesRenderer.java28 private PlotType plot; field in SeriesRenderer
30 public SeriesRenderer(PlotType plot) { in SeriesRenderer() argument
31 this.plot = plot; in SeriesRenderer()
35 return plot; in getPlot()
38 public void setPlot(PlotType plot) { in setPlot() argument
39 this.plot = plot; in setPlot()
43 return plot.getSeriesAndFormatterListForRenderer(getClass()); in getSeriesAndFormatterList()
47 return (SeriesFormatterType) plot.getFormatter(series, getClass()); in getFormatter()
/external/autotest/frontend/client/src/autotest/tko/
DDynamicGraphingFrontend.java21 protected Plot plot; field in DynamicGraphingFrontend
24 public DynamicGraphingFrontend(final TabView parent, Plot plot, String preconfigType) { in DynamicGraphingFrontend() argument
26 this.plot = plot; in DynamicGraphingFrontend()
27 plot.setDrilldownTrigger(); in DynamicGraphingFrontend()
40 plot.setVisible(false); in onClick()
50 plot.refresh(params, new JsonRpcCallback() { in onClick()
53 plot.setVisible(true); in onClick()
75 table.setWidget(table.getRowCount(), 0, plot); in commonInitialization() local
82 plot.setVisible(false); in commonInitialization()
95 plot.setListener(listener); in setListener()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYGraphWidget.java93 private XYPlot plot; field in XYGraphWidget
172 public XYGraphWidget(LayoutManager layoutManager, XYPlot plot, SizeMetrics sizeMetrics) { in XYGraphWidget() argument
174 this.plot = plot; in XYGraphWidget()
337 if (plot.getCalculatedMinY() == null in getYVal()
338 || plot.getCalculatedMaxY() == null) { in getYVal()
341 return ValPixConverter.pixToVal(yPix - paddedGridRect.top, plot in getYVal()
342 .getCalculatedMinY().doubleValue(), plot.getCalculatedMaxY() in getYVal()
363 if (plot.getCalculatedMinX() == null in getXVal()
364 || plot.getCalculatedMaxX() == null) { in getXVal()
367 return ValPixConverter.pixToVal(xPix - paddedGridRect.left, plot in getXVal()
[all …]

1234567