| /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/ |
| BezierLineAndPointFormatter.java | 47 public SeriesRenderer getRendererInstance(XYPlot plot) {
48 return new BezierLineAndPointRenderer(plot);
|
| BarFormatter.java | 69 public SeriesRenderer getRendererInstance(XYPlot plot) {
70 return new BarRenderer(plot);
|
| BezierLineAndPointRenderer.java | 27 public BezierLineAndPointRenderer(XYPlot plot) {
28 super(plot);
|
| XYSeriesRenderer.java | 31 public XYSeriesRenderer(XYPlot plot) {
32 super(plot);
|
| XYLegendWidget.java | 47 private XYPlot plot;
field in class:XYLegendWidget 69 public XYLegendWidget(LayoutManager layoutManager, XYPlot plot,
74 this.plot = plot;
99 Paint bgPaint = plot.getGraphWidget().getGridBackgroundPaint();
107 Paint bgPaint = plot.getGraphWidget().getGridBackgroundPaint();
148 if(plot.isEmpty()) {
159 for(XYSeriesRenderer renderer : plot.getRendererList()) {
161 SeriesAndFormatterList sfl = plot.getSeriesAndFormatterListForRenderer(renderer.getClass());
182 for(XYSeriesRenderer renderer : plot.getRendererList()) { [all...] |
| XYGraphWidget.java | 93 private XYPlot plot;
field in class:XYGraphWidget 172 public XYGraphWidget(LayoutManager layoutManager, XYPlot plot, SizeMetrics sizeMetrics) {
174 this.plot = plot;
305 * Returns a RectF representing the grid area last drawn by this plot.
337 if (plot.getCalculatedMinY() == null
338 || plot.getCalculatedMaxY() == null) {
341 return ValPixConverter.pixToVal(yPix - paddedGridRect.top, plot
342 .getCalculatedMinY().doubleValue(), plot.getCalculatedMaxY()
363 if (plot.getCalculatedMinX() == null [all...] |
| /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
| BarPlotExampleActivity.java | 55 * The simplest possible example of using AndroidPlot to plot some data. 61 private XYPlot plot; field in class:BarPlotExampleActivity 76 // Create a couple arrays of y-values to plot: 107 plot = (XYPlot) findViewById(R.id.mySimpleXYPlot); 109 selectionWidget = new TextLabelWidget(plot.getLayoutManager(), NO_SELECTION_TXT, 130 plot.setTicksPerRangeLabel(3); 131 plot.setRangeLowerBoundary(0, BoundaryMode.FIXED); 132 plot.getGraphWidget().setGridPadding(30, 10, 30, 0); 134 plot.setTicksPerDomainLabel(2); 153 plot.setOnTouchListener(new View.OnTouchListener() [all...] |
| /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
| Redrawer.java | 4 import com.androidplot.Plot; 11 * Utility class for invoking Plot.redraw() on a backgorund thread 18 private List<Plot> plots; 25 * @param plots List of Plot instances to be redrawn 29 public Redrawer(List<Plot> plots, float maxRefreshRate, boolean startImmediately) { 38 public Redrawer(Plot plot, float maxRefreshRate, boolean startImmediately) { 39 this(Arrays.asList(new Plot[]{plot}), maxRefreshRate, startImmediately); 43 * Temporarily stop redrawing the plot [all...] |
| /external/autotest/frontend/client/src/autotest/tko/ |
| EmbeddedTkoClient.java | 30 * * createMetricsPlot(parent) -- returns a metrics plot object attached to the given parent 73 Plot plot = new MetricsPlot(); local 74 plot.setDrilldownTrigger(); 75 plot.setListener(this); 76 parent.appendChild(plot.getElement()); 77 return plot.getNativeProxy();
|
| /external/webrtc/webrtc/modules/video_coding/test/ |
| plotReceiveTrace.m | 109 % Plot the time when each packet arrives 116 plot(x, packetTime(:,3) - firstTime - slope, 'b.'); 118 % Plot the time when the first packet of a frame arrives 125 plot(x, firstPacketTime(:,2) - firstTime - slope, 'b.'); 128 % Plot the frame complete time 134 plot(x, completeTime(:,3) - firstTime - slope, 'ks'); 137 % Plot the time the decode starts 143 plot(x, decodeTime(:,2) - firstTime - slope, 'r.'); 146 % Plot the decode complete time 152 plot(x, decodeCompleteTime(:,4) - firstTime - slope, 'g.') [all...] |
| /external/chromium-trace/catapult/third_party/flot/ |
| jquery.flot.navigate.js | 1 /* Flot plugin for adding the ability to pan and zoom the plot. 7 to pan. The plugin defines plot.zoom({ center }), plot.zoomOut() and 8 plot.pan( offset ) so you easily can add custom controls. It also fires 31 interactive for pan, then you'll have a basic plot that supports moving 40 "frameRate" specifies the maximum number of times per second the plot will 42 intermediate pans, the plot will then not update until the mouse button is 58 plot = $.plot(...); 61 plot.zoom({ center: { left: 10, top: 20 } }) [all...] |
| jquery.flot.navigate.min.js | 7 (function(a){function e(h){var k,j=this,l=h.data||{};if(l.elem)j=h.dragTarget=l.elem,h.dragProxy=d.proxy||j,h.cursorOffsetX=l.pageX-l.left,h.cursorOffsetY=l.pageY-l.top,h.offsetX=h.pageX-h.cursorOffsetX,h.offsetY=h.pageY-h.cursorOffsetY;else if(d.dragging||l.which>0&&h.which!=l.which||a(h.target).is(l.not))return;switch(h.type){case"mousedown":return a.extend(l,a(j).offset(),{elem:j,target:h.target,pageX:h.pageX,pageY:h.pageY}),b.add(document,"mousemove mouseup",e,l),i(j,!1),d.dragging=null,!1;case!d.dragging&&"mousemove":if(g(h.pageX-l.pageX)+g(h.pageY-l.pageY)<l.distance)break;h.target=l.target,k=f(h,"dragstart",j),k!==!1&&(d.dragging=j,d.proxy=h.dragProxy=a(k||j)[0]);case"mousemove":if(d.dragging){if(k=f(h,"drag",j),c.drop&&(c.drop.allowed=k!==!1,c.drop.handler(h)),k!==!1)break;h.type="mouseup"}case"mouseup":b.remove(document,"mousemove mouseup",e),d.dragging&&(c.drop&&c.drop.handler(h),f(h,"dragend",j)),i(j,!0),d.dragging=d.proxy=l.elem=!1}return!0}function f(b,c,d){b.type=c;var e=a.event.dispatch.call(d,b);return e===!1?!1:e||b.result}function g(a){return Math.pow(a,2)}function h(){return d.dragging===!1}function i(a,b){a&&(a.unselectable=b?"off":"on",a.onselectstart=function(){return b},a.style&&(a.style.MozUserSelect=b?"":"none"))}a.fn.drag=function(a,b,c){return b&&this.bind("dragstart",a),c&&this.bind("dragend",c),a?this.bind("drag",b?b:a):this.trigger("drag")};var b=a.event,c=b.special,d=c.drag={not:":input",distance:0,which:1,dragging:!1,setup:function(c){c=a.extend({distance:d.distance,which:d.which,not:d.not},c||{}),c.distance=g(c.distance),b.add(this,"mousedown",e,c),this.attachEvent&&this.attachEvent("ondragstart",h)},teardown:function(){b.remove(this,"mousedown",e),this===d.dragging&&(d.dragging=d.proxy=!1),i(this,!0),this.detachEvent&&this.detachEvent("ondragstart",h)}};c.dragstart=c.dragend={setup:function(){},teardown:function(){}}})(jQuery);(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;void 0!==b.axis&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);void 0!==b.wheelDeltaY&&(g=b.wheelDeltaY/120);void 0!==b.wheelDeltaX&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,!1);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function($){var options={xaxis:{zoomRange:null,panRange:null},zoom:{interactive:false,trigger:"dblclick",amount:1.5},pan:{interactive:false,cursor:"move",frameRate:20}};function init(plot){function onZoomClick(e,zoomOut){var c=plot.offset();c.left=e.pageX-c.left;c.top=e.pageY-c.top;if(zoomOut)plot.zoomOut({center:c});else plot.zoom({center:c})}function onMouseWheel(e,delta){e.preventDefault();onZoomClick(e,delta<0);return false}var prevCursor="default",prevPageX=0,prevPageY=0,panTimeout=null;function onDragStart(e){if(e.which!=1)return false;var c=plot.getPlaceholder().css("cursor");if(c)prevCursor=c;plot.getPlaceholder().css("cursor",plot.getOptions().pan.cursor);prevPageX=e.pageX;prevPageY=e.pageY}function onDrag(e){var frameRate=plot.getOptions().pan.frameRate;if(panTimeout||!frameRate)return;panTimeout=setTimeout(function(){plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY});prevPageX=e.pageX;prevPageY=e.pageY;panTimeout=null},1/frameRate*1e3)}function onDragEnd(e){if(panTimeout){clearTimeout(panTimeout);panTimeout=null}plot.getPlaceholder().css("cursor",prevCursor);plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY}) (…) [all...] |
| jquery.flot.threshold.js | 17 $.plot( $("#placeholder"), [{ 50 function init(plot) { 51 function thresholdData(plot, s, datapoints, below, color) { 107 var origIndex = $.inArray(s, plot.getData()); 109 plot.getData().splice(origIndex + 1, 0, thresholded); 115 function processThresholds(plot, s, datapoints) { 125 thresholdData(plot, s, datapoints, th.below, th.color); 129 thresholdData(plot, s, datapoints, s.threshold.below, s.threshold.color); 133 plot.hooks.processDatapoints.push(processThresholds); 136 $.plot.plugins.push( [all...] |
| jquery.flot.threshold.min.js | 7 (function($){var options={series:{threshold:null}};function init(plot){function thresholdData(plot,s,datapoints,below,color){var ps=datapoints.pointsize,i,x,y,p,prevp,thresholded=$.extend({},s);thresholded.datapoints={points:[],pointsize:ps,format:datapoints.format};thresholded.label=null;thresholded.color=color;thresholded.threshold=null;thresholded.originSeries=s;thresholded.data=[];var origpoints=datapoints.points,addCrossingPoints=s.lines.show;var threspoints=[];var newpoints=[];var m;for(i=0;i<origpoints.length;i+=ps){x=origpoints[i];y=origpoints[i+1];prevp=p;if(y<below)p=threspoints;else p=newpoints;if(addCrossingPoints&&prevp!=p&&x!=null&&i>0&&origpoints[i-ps]!=null){var interx=x+(below-y)*(x-origpoints[i-ps])/(y-origpoints[i-ps+1]);prevp.push(interx);prevp.push(below);for(m=2;m<ps;++m)prevp.push(origpoints[i+m]);p.push(null);p.push(null);for(m=2;m<ps;++m)p.push(origpoints[i+m]);p.push(interx);p.push(below);for(m=2;m<ps;++m)p.push(origpoints[i+m])}p.push(x);p.push(y);for(m=2;m<ps;++m)p.push(origpoints[i+m])}datapoints.points=newpoints;thresholded.datapoints.points=threspoints;if(thresholded.datapoints.points.length>0){var origIndex=$.inArray(s,plot.getData());plot.getData().splice(origIndex+1,0,thresholded)}}function processThresholds(plot,s,datapoints){if(!s.threshold)return;if(s.threshold instanceof Array){s.threshold.sort(function(a,b){return a.below-b.below});$(s.threshold).each(function(i,th){thresholdData(plot,s,datapoints,th.below,th.color)})}else{thresholdData(plot,s,datapoints,s.threshold.below,s.threshold.color)}}plot.hooks.processDatapoints.push(processThresholds)}$.plot.plugins.push({init:init,options:options,name:"threshold",version:"1.2"})})(jQuery)
|
| jquery.flot.image.js | 8 in the plot. Image must be a fully loaded Javascript image (you can make one 16 Then call $.plot.image.loadData( data, options, callback ) where data and 17 options are the same as you pass in to $.plot. This loads the images, replaces 20 $.plot with the data set. See the included example. 22 A more low-level helper, $.plot.image.load(urls, callback) is also included. 38 $.plot( $("#placeholder"), [{ 48 half a pixel stick out to each side in the plot. 66 $.plot.image = {}; 68 $.plot.image.loadDataImages = function (series, options, callback) { 88 $.plot.image.load(urls, function (loadedImages) [all...] |
| jquery.flot.image.min.js | 7 (function($){var options={series:{images:{show:false,alpha:1,anchor:"corner"}}};$.plot.image={};$.plot.image.loadDataImages=function(series,options,callback){var urls=[],points=[];var defaultShow=options.series.images.show;$.each(series,function(i,s){if(!(defaultShow||s.images.show))return;if(s.data)s=s.data;$.each(s,function(i,p){if(typeof p[0]=="string"){urls.push(p[0]);points.push(p)}})});$.plot.image.load(urls,function(loadedImages){$.each(points,function(i,p){var url=p[0];if(loadedImages[url])p[0]=loadedImages[url]});callback()})};$.plot.image.load=function(urls,callback){var missing=urls.length,loaded={};if(missing==0)callback({});$.each(urls,function(i,url){var handler=function(){--missing;loaded[url]=this;if(missing==0)callback(loaded)};$("<img />").load(handler).error(handler).attr("src",url)})};function drawSeries(plot,ctx,series){var plotOffset=plot.getPlotOffset();if(!series.images||!series.images.show)return;var points=series.datapoints.points,ps=series.datapoints.pointsize;for(var i=0;i<points.length;i+=ps){var img=points[i],x1=points[i+1],y1=points[i+2],x2=points[i+3],y2=points[i+4],xaxis=series.xaxis,yaxis=series.yaxis,tmp;if(!img||img.width<=0||img.height<=0)continue;if(x1>x2){tmp=x2;x2=x1;x1=tmp}if(y1>y2){tmp=y2;y2=y1;y1=tmp}if(series.images.anchor=="center"){tmp=.5*(x2-x1)/(img.width-1);x1-=tmp;x2+=tmp;tmp=.5*(y2-y1)/(img.height-1);y1-=tmp;y2+=tmp}if(x1==x2||y1==y2||x1>=xaxis.max||x2<=xaxis.min||y1>=yaxis.max||y2<=yaxis.min)continue;var sx1=0,sy1=0,sx2=img.width,sy2=img.height;if(x1<xaxis.min){sx1+=(sx2-sx1)*(xaxis.min-x1)/(x2-x1);x1=xaxis.min}if(x2>xaxis.max){sx2+=(sx2-sx1)*(xaxis.max-x2)/(x2-x1);x2=xaxis.max}if(y1<yaxis.min){sy2+=(sy1-sy2)*(yaxis.min-y1)/(y2-y1);y1=yaxis.min}if(y2>yaxis.max){sy1+=(sy1-sy2)*(yaxis.max-y2)/(y2-y1);y2=yaxis.max}x1=xaxis.p2c(x1);x2=xaxis.p2c(x2);y1=yaxis.p2c(y1);y2=yaxis.p2c(y2);if(x1>x2){tmp=x2;x2=x1;x1=tmp}if(y1>y2){tmp=y2;y2=y1;y1=tmp}tmp=ctx.globalAlpha;ctx.globalAlpha*=series.images.alpha;ctx.drawImage(img,sx1,sy1,sx2-sx1,sy2-sy1,x1+plotOffset.left,y1+plotOffset.top,x2-x1,y2-y1);ctx.globalAlpha=tmp}}function processRawData(plot,series,data,datapoints){if(!series.images.show)return;datapoints.format=[{required:true},{x:true,number:true,required:true},{y:true,number:true,required:true},{x:true,number:true,required:true},{y:true,number:true,required:true}]}function init(plot){plot.hooks.processRawData.push(processRawData);plot.hooks.drawSeries.push(drawSeries)}$.plot.plugins.push({init:init,options:options,name:"image",vers (…) [all...] |
| jquery.flot.pie.js | 60 // Maximum redraw attempts when fitting labels within the plot 64 // Factor by which to shrink the pie when fitting labels within the plot 68 function init(plot) { 85 plot.hooks.processOptions.push(function(plot, options) { 120 plot.hooks.bindEvents.push(function(plot, eventHolder) { 121 var options = plot.getOptions(); 132 plot.hooks.processDatapoints.push(function(plot, series, data, datapoints) [all...] |
| jquery.flot.pie.min.js | 7 (function($){var REDRAW_ATTEMPTS=10;var REDRAW_SHRINK=.95;function init(plot){var canvas=null,target=null,options=null,maxRadius=null,centerLeft=null,centerTop=null,processed=false,ctx=null;var highlights=[];plot.hooks.processOptions.push(function(plot,options){if(options.series.pie.show){options.grid.show=false;if(options.series.pie.label.show=="auto"){if(options.legend.show){options.series.pie.label.show=false}else{options.series.pie.label.show=true}}if(options.series.pie.radius=="auto"){if(options.series.pie.label.show){options.series.pie.radius=3/4}else{options.series.pie.radius=1}}if(options.series.pie.tilt>1){options.series.pie.tilt=1}else if(options.series.pie.tilt<0){options.series.pie.tilt=0}}});plot.hooks.bindEvents.push(function(plot,eventHolder){var options=plot.getOptions();if(options.series.pie.show){if(options.grid.hoverable){eventHolder.unbind("mousemove").mousemove(onMouseMove)}if(options.grid.clickable){eventHolder.unbind("click").click(onClick)}}});plot.hooks.processDatapoints.push(function(plot,series,data,datapoints){var options=plot.getOptions();if(options.series.pie.show){processDatapoints(plot,series,data,datapoints)}});plot.hooks.drawOverlay.push(function(plot,octx){var options=plot.getOpt (…) [all...] |
| jquery.flot.categories.js | 7 allows you to plot such a dataset directly. 12 $.plot("#placeholder", data, { xaxis: { mode: "categories" } }); 42 as "categories" on the axis object, e.g. plot.getAxes().xaxis.categories. 56 function processRawData(plot, series, data, datapoints) { 174 function processDatapoints(plot, series, datapoints) { 179 function init(plot) { 180 plot.hooks.processRawData.push(processRawData); 181 plot.hooks.processDatapoints.push(processDatapoints); 184 $.plot.plugins.push({
|
| jquery.flot.categories.min.js | 7 (function($){var options={xaxis:{categories:null},yaxis:{categories:null}};function processRawData(plot,series,data,datapoints){var xCategories=series.xaxis.options.mode=="categories",yCategories=series.yaxis.options.mode=="categories";if(!(xCategories||yCategories))return;var format=datapoints.format;if(!format){var s=series;format=[];format.push({x:true,number:true,required:true});format.push({y:true,number:true,required:true});if(s.bars.show||s.lines.show&&s.lines.fill){var autoscale=!!(s.bars.show&&s.bars.zero||s.lines.show&&s.lines.zero);format.push({y:true,number:true,required:false,defaultValue:0,autoscale:autoscale});if(s.bars.horizontal){delete format[format.length-1].y;format[format.length-1].x=true}}datapoints.format=format}for(var m=0;m<format.length;++m){if(format[m].x&&xCategories)format[m].number=false;if(format[m].y&&yCategories)format[m].number=false}}function getNextIndex(categories){var index=-1;for(var v in categories)if(categories[v]>index)index=categories[v];return index+1}function categoriesTickGenerator(axis){var res=[];for(var label in axis.categories){var v=axis.categories[label];if(v>=axis.min&&v<=axis.max)res.push([v,label])}res.sort(function(a,b){return a[0]-b[0]});return res}function setupCategoriesForAxis(series,axis,datapoints){if(series[axis].options.mode!="categories")return;if(!series[axis].categories){var c={},o=series[axis].options.categories||{};if($.isArray(o)){for(var i=0;i<o.length;++i)c[o[i]]=i}else{for(var v in o)c[v]=o[v]}series[axis].categories=c}if(!series[axis].options.ticks)series[axis].options.ticks=categoriesTickGenerator;transformPointsOnAxis(datapoints,axis,series[axis].categories)}function transformPointsOnAxis(datapoints,axis,categories){var points=datapoints.points,ps=datapoints.pointsize,format=datapoints.format,formatColumn=axis.charAt(0),index=getNextIndex(categories);for(var i=0;i<points.length;i+=ps){if(points[i]==null)continue;for(var m=0;m<ps;++m){var val=points[i+m];if(val==null||!format[m][formatColumn])continue;if(!(val in categories)){categories[val]=index;++index}points[i+m]=categories[val]}}}function processDatapoints(plot,series,datapoints){setupCategoriesForAxis(series,"xaxis",datapoints);setupCategoriesForAxis(series,"yaxis",datapoints)}function init(plot){plot.hooks.processRawData.push(processRawData);plot.hooks.processDatapoints.push(processDatapoints)}$.plot.plugins.push({init:init,options:options,name:"categories",version:"1.0"})})(jQuery)
|
| /cts/apps/CameraITS/tests/inprog/ |
| test_blc_lsc.py | 91 pylab.plot(exposures, r_means_center, 'r') 92 pylab.plot(exposures, g_means_center, 'g') 93 pylab.plot(exposures, b_means_center, 'b') 98 pylab.plot(exposures, r_means_corner, 'r') 99 pylab.plot(exposures, g_means_corner, 'g') 100 pylab.plot(exposures, b_means_corner, 'b')
|
| /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/ |
| Formatter.java | 20 import com.androidplot.Plot;
40 public abstract class Formatter<PlotType extends Plot> {
57 * @return An instance of SeriesRenderer that took plot as an argument to its constructor.
59 public abstract SeriesRenderer getRendererInstance(PlotType plot);
|
| /external/skia/tools/ |
| Stats.h | 56 plot.append(kBars[0]); 66 plot.append(kBars[bar]); 75 SkString plot; // A single-line bar chart (_not_ histogram) of the samples.
|
| /external/skia/src/gpu/ |
| GrLayerCache.cpp | 35 // If a layer has a plot (i.e., is atlased) then it must point to 193 this->incPlotLock(layer->plot()->id()); 212 GrLayerAtlas::Plot* plot = fAtlas->addToAtlas(&pictInfo->fPlotUsage, local 217 if (plot) { 219 pictInfo->incPlotUsage(plot->id()); 225 layer->setPlot(plot); 227 this->incPlotLock(layer->plot()->id()); 233 // plausibly atlas-able). See if a plot can be purged and try again. 282 const int plotID = layer->plot()->id() 402 GrLayerAtlas::Plot* plot; local [all...] |
| /external/eigen/bench/btl/data/ |
| mk_gnuplot_script.sh | 9 echo plot \\ >> $WHAT.gnuplot 33 echo plot \\ >> $WHAT.gnuplot 48 echo plot \\ >> $WHAT.gnuplot
|