This question already has answers here:
How to hide labels in ios-charts?
(3 answers)
Closed 4 years ago.
I want try remove small squares at the bottom of a chart( danielgindi/Charts).
post picture.
plz help me....
chart example
It's very simple
juste a line
chartView.legend.isEnabled = false
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Hey I was trying solve this problem . Where you're asked to segment out "zebra" out of image. Below is the given image.
And output should be like this.
Well I got stuck at "strips" of zebra cause they may get segmented as separate objects.
In image processing, it is important to look at your image and try to understand the difference between your region of interest, i.e. the zebra, and the rest, i.e. background.
In this example, a clear difference is that the background is rather greenish and the zebra black and white. Therefore, the green channel of the image can be used to extract the background. Afterwards the result can be (non-linearly) cleaned up using some dilation and erosion steps.
A simple and non-perfect segmentation technique is (in Matlab):
I = imread('lA196m.jpg');
% plot the original image
figure
subplot(2,2,1)
imshow(I)
% calculate the green channel (relative green value)
greenChannel = double(I(:,:, 2))./mean(I(:,:,:), 3);
binary = greenChannel > 1; % apply a thresshold
subplot(2,2,2)
imshow(binary);
% remove false positives (backgrounds)
se1 = strel('sphere',20);
binary2 = imdilate(imerode(binary,se1), se1);
subplot(2,2,3)
imshow(binary2);
% add false negatives
se2 = strel('sphere',10);
binary3 = imerode(imdilate(binary2,se2), se2);
subplot(2,2,4)
imshow(binary3);
% calculate & plot the boundary on the original image
subplot(2,2,1)
Bs = bwboundaries(~binary3);
B = Bs{1};
hold on
plot(B(:, 2), B(:, 1), 'LineWidth', 2);
This question already has answers here:
"f" after number
(10 answers)
Closed 7 years ago.
This must be in documentation somewhere but I cannot find it. What does the .f mean when defining rectangles using CGSizeMake as in CGSizeMake(200.0f, 100.0f);?
.f means that value is float.
if you write directly 1.0 it is initialized as double.
to use less space 1.0f is better.
This question already has answers here:
How do you provide labels for the axis of a Core Plot chart?
(2 answers)
Closed 9 years ago.
i'm new at using Core Plot.
So what i actually want is to set custom labels for the y axis like using an array with different activities like volleyball, soccer and swimming and to this the x axis has dates. Implement the date array to Core Plot was no problem, but now i want, like i told, to have an custom y axis and for every activity i want to show a horizontal bar with the time that soccer or another takes. The Bar Chart should show me which time an activity takes, like soccer starts at 08:00 am and ends 11:00.
i hope you can help me!
Use the CPTAxisLabelingPolicyNone labeling policy for the y-axis and create your own axis labels with the desired label text. There are several demos in the Plot Gallery example app including the labeling policy and the bar chart in the composite plot.
This question already has an answer here:
How to set arrows at the end of Core Plot axis?
(1 answer)
Closed 8 years ago.
is it possible to add an arrow on the graph like that with corePlot ?
Yes, but only on axis lines. See the Plot Gallery example app for several examples.