I have a line chart that builds by a combination of several data. But the curve draws some strange straight lines on some areas.
How can i delete this line?
The problem is i think not related to the data because icannot touch with cursor to this straight line. I think curve automatically draws something like regression line, but icouldn't remove it.
Thank you.
Another example
if i chose dot data as true, you can see that there is no data point on these straight lines.
I solved my problem. For those who has the same issue, the data of the curve should be sorted. If your data is map, just turn the map to sorted with collection package with the following code;
data = SplayTreeMap();
That's it.
Related
I have a similar question to this one: "snapping" polygons together
I have drawn let's say 3 areas. The 1. is overlapping with the 2. and the 2. is overlapping with the 3.
I made sure that I was using the snapping tool and the outer lines are matching each other. That is all fine. But now I want them to be just one feature. So I marked the 3 features and hit "Merge Selected Features". It seemed to work, but there is still the line between them.
Then I gave "Dissolve" a try but it had the same result.
So I played around but did not find any way to handle that. What I more would like to have would be that I can join points. IS there maybe something like merge points? Any ideas are welcome.
Here a picture with the vertical unwanted line: http://imgur.com/mFkNzev
Overally merging features is working. But there is a big issue when one features has issues.
All you need to do is checking the to be merged features. Solve any issue like multiple points or intersections. Now try merging them again and it should work. At least for myself it did.
Another issue could be QGIS. Here it helps a simple restart of QGIS.
Can anyone suggest an approach or method for the separation of overlapping and touching lines within handwritten documents?
I can segment text lines. Now i want to separate the connected lines.
Here it is my image:
Thanks
You try using the watershed over the distance function of the connected component set to separate them like here and here. Though its possible it could oversegment the result based on the shapes.
When I click on the various hyperlinks to tween my chart: while the pie's slices are tweening but I cannot figure out how to bring along each slice's label.
A mostly working JSfiddle is here: http://jsfiddle.net/lukateake/MX7JC/
Thanks in advance for any insights you can provide me. I promise to update the fiddle with whatever solution we discover as I imagine this effect is of interest to a great many D3'ers.
The main issue here is in your updateChart function - while you rebound the data to arcs, you did not do so for sliceLabel: (second line added)
arcs.data(donut(data.pct)); // recompute angles, rebind data
sliceLabel.data(donut(data.pct));
One other small thing - your slice label text selection seems a little bit strange:
var sliceLabel = label_group.selectAll("text.value")
but you are creating no text with class = "value"; this doesn't really end up affecting much, but might cause problems in other implementations - selectAll("text") or selectAll("text.arcLabel") might be more appropriate here.
updated fiddle at http://jsfiddle.net/MX7JC/9/
When I make a figure in Matlab, with a legend and a rectangle that touches the y axis (strange, I know) upon exporting the figure to eps (or pdf) I've noticed that the rectangle obtains the line-style of the last line drawn (rather than what the rectangle was drawn with)
This behaviour also occurs for rectangles drawn after the one that touches the axis...
This doesn't happen if the rectangle is drawn before the legend is created....
Needless to say, it took me half a day to create a minimal example:
clf
L=plot(X,sin(X),'--');
legend(L,'sin(x)')
rectangle('position',[0.001,.1,.7,.7])
rectangle('position',[0,.5,.6,.7])
rectangle('position',[0.001,.3,.5,.7])
%legend(L,'sin(x)')
On the screen the 3 rectangle have solid lines, as they should. but once they are exported, the result has the last two with dashed lines (like the sin(x)). If the legend command is done later (as in the commented out line), everything works as it should....
Is this a feature or a bug?
This is not a feature. I am submitting this to development.
You found a workaround that works with minimal code gymnastics. I would document it in your code so someone does not change it unknowingly and move on.
If you are open to other output formats, notice this is not an issue with formats that use an output filter of MATLAB.
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/print.html
(Graphic Format Files section, right column in table)
-Doug, Advanced Support at MathWorks dealing with graphical issues.
I want to use core-plot for drawing line graph dynamically. data won't come at a time, we will be receiving point by point dynamically.
Is it possible to draw the chart dynamically using core-plot i.e drawing point by point as on when we receive the (x,y) point?
Please help me, Thanks.
Yes, you can do this reasonably easily. For each received data point, append it to an array of values to display. As these data points come in, call -reloadData on the Core Plot graph (or just the particular plot) to redraw the graph, passing in the array you just added a value to in response to the -numbersForPlot:field:recordIndexRange: delegate method.
If you need to adjust the plot range to track your data points (for a moving ticker), recalculate the new CPPlotRange for the X axis and set the plot space's xRange property to that.
Use the CPTestApp-iPhone, AAPLot, or StockPlot examples as templates for how to set up the line chart overall, and modify from that starting point.
I do something similar to this on the Mac in a scientific application:
(source: sunsetlakesoftware.com)
Sounds like you could make use of a demo project I put together and wrote about here (not core plot related though).
It draws a EKG graph but should easily be modified to use another input than the repeated "heart beat"...See line 320 in EAGLView.m where the indata is entered into the array.