HomeSort by relevance Sort by last modified time
    Searched refs:plot (Results 1 - 25 of 168) sorted by null

1 2 3 4 5 6 7

  /external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/
XYPlotTest.java 24 import com.androidplot.Plot;
50 XYPlot plot; // testing field in class:XYPlotTest
65 plot = new XYPlot(null, "test");
78 plot.addSeries(series1, new LineAndPointFormatter());
79 plot.centerOnDomainOrigin(5, 2, BoundaryMode.FIXED);
80 plot.calculateMinMaxVals();
83 assertEquals(3.0, plot.getCalculatedMinX());
84 assertEquals(7.0, plot.getCalculatedMaxX());
89 plot.addSeries(series1, new LineAndPointFormatter());
90 plot.centerOnDomainOrigin(5);
    [all...]
XYSeriesRendererTest.java 73 XYPlot plot = new XYPlot(context, "Test"); local
74 plot.setDomainStepMode(XYStepMode.SUBDIVIDE);
75 plot.setDomainStepValue(10);
76 plot.setDomainBoundaries(0, 100, BoundaryMode.FIXED);
77 plot.setRangeBoundaries(0, 100, BoundaryMode.FIXED);
78 plot.calculateMinMaxVals();
79 XYStep domainStep = XYStepCalculator.getStep(plot, XYAxisType.DOMAIN, gridRect, plot.getCalculatedMinX().doubleValue(), plot.getCalculatedMaxX().doubleValue());
XYLegendWidgetTest.java 25 import com.androidplot.Plot;
74 XYPlot plot = new XYPlot(context, "Test", Plot.RenderMode.USE_MAIN_THREAD); local
79 plot.addSeries(s1, new LineAndPointFormatter(
82 assertEquals(1, plot.getSeriesSet().size());
84 Deencapsulation.invoke(plot, "onSizeChanged", 100, 100, 100, 100);
85 plot.redraw();
88 Deencapsulation.invoke(plot, "onDraw", new Canvas());
90 plot.removeSeries(s1);
91 assertEquals(0, plot.getSeriesSet().size())
    [all...]
  /external/chromium-trace/catapult/third_party/flot/
jquery.flot.crosshair.js 1 /* Flot plugin for showing crosshairs when the mouse hovers over the plot.
25 moves the mouse. "pos" is in coordinates of the plot and should be on the
42 var myFlot = $.plot( $("#graph"), ..., { crosshair: { mode: "x" } } };
70 function init(plot) {
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 po
    [all...]
jquery.flot.crosshair.min.js 7 (function($){var options={crosshair:{mode:null,color:"rgba(170, 0, 0, 0.80)",lineWidth:1}};function init(plot){var crosshair={x:-1,y:-1,locked:false};plot.setCrosshair=function setCrosshair(pos){if(!pos)crosshair.x=-1;else{var o=plot.p2c(pos);crosshair.x=Math.max(0,Math.min(o.left,plot.width()));crosshair.y=Math.max(0,Math.min(o.top,plot.height()))}plot.triggerRedrawOverlay()};plot.clearCrosshair=plot.setCrosshair;plot.lockCrosshair=function lockCrosshair(pos){if(pos)plot.setCrosshair(pos);crosshair.locked=true};plot.unlockCrosshair=function unlockCrosshair(){crosshair (…)
    [all...]
jquery.flot.selection.js 1 /* Flot plugin for selecting regions of a plot.
19 later on, you can get to it with plot.getOptions().selection.color). "shape"
33 the DOM element you passed into the plot function. The event handler gets a
51 The plugin allso adds the following methods to the plot object:
82 function init(plot) {
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 ])
    [all...]
jquery.flot.selection.min.js 7 (function($){function init(plot){var selection={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false};var savedhandlers={};var mouseUpHandler=null;function onMouseMove(e){if(selection.active){updateSelection(e);plot.getPlaceholder().trigger("plotselecting",[getSelection()])}}function onMouseDown(e){if(e.which!=1)return;document.body.focus();if(document.onselectstart!==undefined&&savedhandlers.onselectstart==null){savedhandlers.onselectstart=document.onselectstart;document.onselectstart=function(){return false}}if(document.ondrag!==undefined&&savedhandlers.ondrag==null){savedhandlers.ondrag=document.ondrag;document.ondrag=function(){return false}}setSelectionPos(selection.first,e);selection.active=true;mouseUpHandler=function(e){onMouseUp(e)};$(document).one("mouseup",mouseUpHandler)}function onMouseUp(e){mouseUpHandler=null;if(document.onselectstart!==undefined)document.onselectstart=savedhandlers.onselectstart;if(document.ondrag!==undefined)document.ondrag=savedhandlers.ondrag;selection.active=false;updateSelection(e);if(selectionIsSane())triggerSelectedEvent();else{plot.getPlaceholder().trigger("plotunselected",[]);plot.getPlaceholder().trigger("plotselecting",[null])}return false}function getSelection(){if(!selectionIsSane())return null;if(!selection.show)return null;var r={},c1=selection.first,c2=selection.second;$.each(plot.getAxes(),function(name,axis){if(axis.used){var p1=axis.c2p(c1[axis.direction]),p2=axis.c2p(c2[axis.direction]);r[name]={from:Math.min(p1,p2),to:Math.max(p1,p2)}}});return r}function triggerSelectedEvent(){var r=getSelection();plot.getPlaceholder().trigger("plotselected",[r]);if(r.xaxis&&r.yaxis)plot.getPlaceholder().trigger("selected",[{x1:r.xaxis.from,y1:r.yaxis.from,x2:r.xaxis.to,y2:r.yaxis.to}])}function clamp(min,value,max){return value<min?min:value>max?max:value}function setSelectionPos(pos,e){var o=plot.getOptions();var offset=plot.getPlaceholder().offset();var plotOffset=plot.getPlotOffset();pos.x=clamp(0,e.pageX-offset.left-plotOffset.left,plot.width());pos.y=clamp(0,e.pa (…)
    [all...]
PLUGINS.md 5 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)
    [all...]
jquery.flot.resize.js 7 resize event plugin) - if the size changes, it will redraw the plot.
27 function init(plot) {
29 var placeholder = plot.getPlaceholder();
31 // somebody might have hidden us and we can't plot
36 plot.resize();
37 plot.setupGrid();
38 plot.draw();
41 function bindEvents(plot, eventHolder) {
42 plot.getPlaceholder().resize(onResize);
45 function shutdown(plot, eventHolder)
    [all...]
jquery.flot.resize.min.js 7 (function($,e,t){"$:nomunge";var i=[],n=$.resize=$.extend($.resize,{}),a,r=false,s="setTimeout",u="resize",m=u+"-special-event",o="pendingDelay",l="activeDelay",f="throttleWindow";n[o]=200;n[l]=20;n[f]=true;$.event.special[u]={setup:function(){if(!n[f]&&this[s]){return false}var e=$(this);i.push(this);e.data(m,{w:e.width(),h:e.height()});if(i.length===1){a=t;h()}},teardown:function(){if(!n[f]&&this[s]){return false}var e=$(this);for(var t=i.length-1;t>=0;t--){if(i[t]==this){i.splice(t,1);break}}e.removeData(m);if(!i.length){if(r){cancelAnimationFrame(a)}else{clearTimeout(a)}a=null}},add:function(e){if(!n[f]&&this[s]){return false}var i;function a(e,n,a){var r=$(this),s=r.data(m)||{};s.w=n!==t?n:r.width();s.h=a!==t?a:r.height();i.apply(this,arguments)}if($.isFunction(e)){i=e;return a}else{i=e.handler;e.handler=a}}};function h(t){if(r===true){r=t||1}for(var s=i.length-1;s>=0;s--){var l=$(i[s]);if(l[0]==e||l.is(":visible")){var f=l.width(),c=l.height(),d=l.data(m);if(d&&(f!==d.w||c!==d.h)){l.trigger(u,[d.w=f,d.h=c]);r=t||true}}else{d=l.data(m);d.w=0;d.h=0}}if(a!==null){if(r&&(t==null||t-r<1e3)){a=e.requestAnimationFrame(h)}else{a=setTimeout(h,n[o]);r=false}}}if(!e.requestAnimationFrame){e.requestAnimationFrame=function(){return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,i){return e.setTimeout(function(){t((new Date).getTime())},n[l])}}()}if(!e.cancelAnimationFrame){e.cancelAnimationFrame=function(){return e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout}()}})(jQuery,this);(function($){var options={};function init(plot){function onResize(){var placeholder=plot.getPlaceholder();if(placeholder.width()==0||placeholder.height()==0)return;plot.resize();plot.setupGrid();plot.draw()}function bindEvents(plot,eventHolder){plot.getPlaceholder().resize(onResize)}function shutdown(plot,eventHolder){plot.getPlaceholder().unbind("resize",onResize)}plot.hooks.bindEvents.push(bindEvents);plot.hooks.shutdown.push(shutdown)}$.plot.plugins.push({init:ini (…)
    [all...]
  /external/webrtc/webrtc/modules/video_coding/test/
plotJitterEstimate.m 9 plot(x, slopes(x, 1).*(framestats(x, 1) - framestats(x, 2)) + 3*sqrt(randJitters(x,2)), 'b'); title('Estimate ms');
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')
    [all...]
  /external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
PlotTest.java 61 public void onBeforeDraw(Plot source, Canvas canvas) {}
64 public void onAfterDraw(Plot source, Canvas canvas) {}
91 public MockRenderer1(Plot plot) {
92 super(plot);
107 public MockRenderer2(Plot plot) {
108 super(plot);
130 public SeriesRenderer getRendererInstance(MockPlot plot) {
131 return new MockRenderer1(plot);
186 Plot plot = new MockPlot(context, "MockPlot"); local
226 Plot plot = new MockPlot(context, "MockPlot"); local
296 Plot plot = new MockPlot(context, "MockPlot"); local
327 Plot plot = new MockPlot(context, "MockPlot"); local
354 Plot plot = new MockPlot(context, "MockPlot"); local
379 Plot plot = new MockPlot(context, "MockPlot"); local
407 Plot plot = new MockPlot(context, "MockPlot"); local
462 Plot plot = new MockPlot(context, "MockPlot"); local
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/
SeriesRenderer.java 24 import com.androidplot.Plot;
27 <PlotType extends Plot, SeriesType extends Series, SeriesFormatterType extends Formatter> {
28 private PlotType plot; field in class:SeriesRenderer
30 public SeriesRenderer(PlotType plot) {
31 this.plot = plot;
35 return plot;
38 public void setPlot(PlotType plot) {
39 this.plot = plot;
    [all...]
  /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
XYPlotWithBgImgActivity.java 19 private XYPlot plot; field in class:XYPlotWithBgImgActivity
27 plot = (XYPlot) findViewById(R.id.graph_metrics);
30 //plot.setMarkupEnabled(true);
33 plot.getGraphWidget().getBackgroundPaint().setColor(Color.TRANSPARENT);
34 plot.getGraphWidget().getGridBackgroundPaint().setShader(WHITE_SHADER);
35 plot.getGraphWidget().getDomainGridLinePaint().setColor(Color.BLACK);
36 plot.getGraphWidget().getDomainGridLinePaint().setPathEffect(new DashPathEffect(new float[]{3, 3}, 1));
37 plot.getGraphWidget().getRangeGridLinePaint().setColor(Color.BLACK);
38 plot.getGraphWidget().getRangeGridLinePaint().setPathEffect(new DashPathEffect(new float[]{3, 3}, 1));
39 plot.getGraphWidget().getDomainOriginLinePaint().setColor(Color.BLACK)
    [all...]
SimpleXYPlotActivity.java 27 * A straightforward example of using AndroidPlot to plot some data.
32 private XYPlot plot; field in class:SimpleXYPlotActivity
46 plot = (XYPlot) findViewById(R.id.mySimpleXYPlot);
48 // Create a couple arrays of y-values to plot:
69 plot.addSeries(series1, series1Format);
76 plot.addSeries(series2, series2Format);
79 plot.setTicksPerRangeLabel(3);
80 plot.getGraphWidget().setDomainLabelOrientation(-45);
XYRegionExampleActivity.java 45 private XYPlot plot; field in class:XYRegionExampleActivity
82 plot = (XYPlot) findViewById(R.id.xyRegionExamplePlot);
150 plot.addSeries(timSeries, timFormatter);
153 plot.removeSeries(timSeries);
156 plot.redraw();
161 plot.addSeries(nickSeries, nickFormatter);
165 plot.removeSeries(nickSeries);
169 plot.redraw();
174 plot.addSeries(joeSeries, joeFormatter);
176 plot.removeSeries(joeSeries);
    [all...]
  /external/skia/src/gpu/
GrLayerAtlas.cpp 15 GrLayerAtlas::Plot::Plot()
21 GrLayerAtlas::Plot::~Plot() {
25 void GrLayerAtlas::Plot::init(int id, int offX, int offY, int width, int height) {
31 bool GrLayerAtlas::Plot::allocateRect(int width, int height, SkIPoint16* loc) {
41 void GrLayerAtlas::Plot::reset() {
96 fPlotArray = new Plot[numPlotsX * numPlotsY];
98 Plot* currPlot = fPlotArray;
112 for (Plot* plot = iter.init(fPlotList, PlotIter::kHead_IterStart); plot; plot = iter.next())
137 Plot* plot = usage->plot(i); local
156 Plot* plot; local
    [all...]
GrLayerAtlas.h 25 // if no space is found, opens up a new Plot for that client. The Plots keep track of
28 // If all Plots are full, the replacement strategy is up to the client. The Plot::reset
29 // call will remove a Plot's knowledge of any allocated rects - freeing its space for reuse.
33 class Plot {
34 SK_DECLARE_INTERNAL_LLIST_INTERFACE(Plot); // In an MRU llist
37 // This returns a plot ID unique to each plot in the atlas. They are
46 Plot();
47 ~Plot(); // does not try to delete the fNext field
55 SkIPoint16 fOffset; // the offset of the plot in the backing textur
73 Plot* plot(int index) { return fPlots[index]; } function in class:GrLayerAtlas::ClientPlotUsage
    [all...]
GrBatchAtlas.cpp 107 // zero out the plot
120 GrPlotUploader(GrBatchAtlas::BatchPlot* plot, GrTexture* texture)
121 : INHERITED(plot->lastUploadToken())
122 , fPlot(SkRef(plot))
124 SkASSERT(plot);
183 inline void GrBatchAtlas::updatePlot(GrDrawBatch::Target* target, AtlasID* id, BatchPlot* plot) {
184 this->makeMRU(plot);
189 if (target->hasTokenBeenFlushed(plot->lastUploadToken())) {
190 plot->setLastUploadToken(target->asapToken());
191 SkAutoTUnref<GrPlotUploader> uploader(new GrPlotUploader(plot, fTexture))
205 BatchPlot* plot; local
    [all...]
  /external/autotest/frontend/client/src/autotest/tko/
DynamicGraphingFrontend.java 21 protected Plot plot; field in class:DynamicGraphingFrontend
24 public DynamicGraphingFrontend(final TabView parent, Plot plot, String preconfigType) {
26 this.plot = plot;
27 plot.setDrilldownTrigger();
40 plot.setVisible(false);
50 plot.refresh(params, new JsonRpcCallback() {
53 plot.setVisible(true)
75 table.setWidget(table.getRowCount(), 0, plot); local
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
StepFormatter.java 41 public SeriesRenderer getRendererInstance(XYPlot plot) {
42 return new StepRenderer(plot);
StepRenderer.java 29 public StepRenderer(XYPlot plot) {
30 super(plot);
56 public StepRenderer(XYPlot plot) {
57 super(plot);
XYStepCalculator.java 23 * Calculates "stepping" values for a plot. These values are most commonly used for
31 * @param plot
38 public static XYStep getStep(XYPlot plot, XYAxisType axisType, RectF rect, Number minVal, Number maxVal) {
42 step = getStep(plot.getDomainStepMode(), rect.width(), plot.getDomainStepValue(), minVal, maxVal);
45 step = getStep(plot.getRangeStepMode(), rect.height(), plot.getRangeStepValue(), minVal, maxVal);
  /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/widget/
DemoAppWidgetProvider.java 38 XYPlot plot = new XYPlot(context, "Widget Example"); local
39 //plot.getLayoutParams().height = 100;
40 //plot.getLayoutParams().width = 100;
41 plot.measure(150,150);
42 plot.layout(0,0,150,150);
43 plot.setDrawingCacheEnabled(true);
45 // Create a couple arrays of y-values to plot:
65 plot.addSeries(series1, series1Format);
68 plot.addSeries(series2,
74 plot.setTicksPerRangeLabel(3);
    [all...]
  /external/fio/tools/
fio_generate_plots 78 plot () { function
112 echo " $PLOT_TITLE ; $YAXIS ; $DEFAULT_OPTS ; show style lines ; $OUTPUT ; plot " $PLOT_LINE | $GNUPLOT -
117 # plot <sub title> <file name tag> <y axis label> <y axis scale>
120 plot "I/O Latency" lat "Time (msec)" 1000
121 plot "I/O Operations Per Second" iops "IOPS" 1
122 plot "I/O Submission Latency" slat "Time (?sec)" 1
123 plot "I/O Completion Latency" clat "Time (msec)" 1000
124 plot "I/O Bandwidth" bw "Throughput (KB/s)" 1

Completed in 198 milliseconds

1 2 3 4 5 6 7