Don't know of it helps but I only found that you can end the line prematurely by setting a value to zero: seriesData[0][75] = 0; results in red line being drawn only half the normal way. Looks like gaps are supported only in some types of graphs: http://code.shutterstock.com/rickshaw/examples/gaps.html...

arrays,matlab,statistics,graphing,interpolate

I'm going to take a stab at this, although you really do need to provide a real working example of your code and an actual version of the input data that throws the error. The code and data you posted work just fine: f = 2.95 3.325 3.9 3.95 The...

python,date,matplotlib,graph,graphing

Not sure if this is the simplest way to do it, but one way would be to just make an extra list that is mostly blank except for every fifth date. For instance: plotdate = [] for idx, val in enumerate(date): if idx%5 == 0: plotdate.append(val) else: plotdate.append('') And then...

Always in the eleventh hour I post my question, and always in the eleventh hour I find the solution. http://jsfiddle.net/1jgb2k6r/10/ Basically, the flot line of graphing libraries have an integral bug in their datetime calculations. They all suffer severe floating point rounding errors in relation to time axis on the...

Add "alpha" (transparency) to the color: CPTColor *color = [[CPTColor redColor] colorWithAlphaComponent:0.1]; ...

python-2.7,csv,matplotlib,graphing

You are looking for set_xticklabels

You could use mtit to create an invisible axes around the subplots. mtit returns the handle to that axes, for which you can then create xlabel and ylabel. Example: % create sample data my_data = arrayfun(@(x)rand(10, 2) + repmat([x, 0], 10, 1), 1:6, 'UniformOutput', 0); figure; clf ah = gobjects(6,...

Hm, I haven't tested it, but basic DFS/BFS should do the trick, as such: var tryGetPaths = _graph.TreeBreadthFirstSearch(__source__); IEnumerable<Edge<YourItemType>> path; if (tryGetPaths(__target__, out path)) { // we have connectivity! } That one checks if there is any connectivity from source to target. You might want to run that check vice...

There's a few problems: scale = (top - bot)/self.l Depending on your version of Python this might do an integer division, so cast to float to make sure you don't round down to zero: scale = (top - bot)/float(self.l) Also, subtracting one can avoid an off-by-one error (an array of...

Just make custom axes with axes = FALSE and ?axis You can clean up your code substantially: Visit_Curve <- read.table(header = TRUE, text = "Tenure Type Visits Members Percent 1 0 Basic 122446 283975 0.4311858 2 0 Premium 21190 44392 0.4773383 3 1 Basic 92233 283975 0.3247927 4 1 Premium...

python-2.7,list-comprehension,graphing

If you want to access data of JUST 2007 and 2008, you will have to search by those two years' index. I mean, you have to know in which index those years are stored in. In this case, index-1 is the answer. So, you have to loop for each 'sub-list'...

java,random,plot,sensor,graphing

Why donĀ“t you try modulating your random signal with a sin(t) function: long n = 0; double randomWeight = 0.5; while(true) { nextVal = range.getRandomValue(); double temp = AMPLITUDE*(randomWeight*((double)nextVal)+(1.0-randomWeight)*Math.sin(2.0*Math.PI*((double)n)*WIDTH_FACTOR)); nextVal = (long)temp; n++; System.out.println(nextVal); StdDraw.point(prevVal, nextVal); StdDraw.line(t-1, prevVal, t, nextVal); StdDraw.show(100); prevVal = nextVal; t = (t+1) % 100; if(t...

android,graphing,android-graphview

http://jjoe64.github.io/GraphView/javadoc/com/jjoe64/graphview/GraphViewSeries.html#appendData(com.jjoe64.graphview.GraphViewDataInterface, boolean, int) Parameters: value - the new data to append scrollToEnd - true => graphview will scroll to the end (maxX) maxDataCount - if max data count is reached, the oldest data value will be lost ...

android,graphing,android-graphview,datapoint

I ended up subclassing BaseSeries and basically doing a complete replication of LineGraphSeries with the exception of making some of those protected functions public. This gave me the ability to keep track of datapoints and their PointF's in a Map, then look up PointF's based on their corresponding datapoint.

r,ggplot2,stata,graphing,subsetting

very nicely done question. If you are still interested in a base solution: transactionID <- c(1, 2, 3, 4) date <- as.Date(c("2006-08-06", "2008-07-30", "2009-04-16", "2013-02-05")) cost <- as.integer(c(1208, 23820, 402, 89943)) company <- c("ACo", "BInc", "CInd", "DOp") thedata <- data.frame(transactionID, date, cost, company) par(mar = c(5,7,3,2), tcl = .2, las...

javascript,jquery,graphing,dygraphs

Found the issue. Our data was being returned as strings instead of integers. Casting them to integers resolved the issue. Changed for ( var i = 0; i < graph_data.length; i++) { graph_data[i][0] = new Date(graph_data[i][0]); } to for ( var i = 0; i < graph_data.length; i++) { graph_data[i][0]...

python,numpy,matplotlib,pandas,graphing

Have you tried: plt.tight_layout()

Use ezplot to plot from an expression string: x = [40 50]; expression = '-2.254443e-02*x^4 + 1.797023e+02*x^3 + -5.364190e+05*x^2 + 7.107614e+08*x + -3.527500e+11'; ezplot(expression, x); Please note the addition of single quotes around the expression to turn it into a string!...