IronPython how to set marker type to tiles? - scatter-plot

I looked through the documentation here and found the MarkerClass, but can't figure out how to set it to be Tile (enum value 2). Here is what I've tried so far:
chart.MarkerClass = MarkerClass(2)
Thanks in advance for any help!

Figured it out!
chart.MarkerClass = MarkerClass().Tile

Related

AmCharts animated line on map chart5

I want to use amCharts for create connection map.
I take this demo: https://www.amcharts.com/docs/v4/tutorials/animating-map-lines-with-css/
But, this's demo using amcharts4. I need to use amchart5. How can I do ? Please help me. Thank you so much
I expect that I can use animating map line amchart5 but this document for amchart5 doesn't have. How can I do ? Pls help me. Tks

Rotating a UIButton?

I am trying to rotate a UIButton so it looks more like a diamond instead of a square. I have searched a lot on the site and could not find anything that could help me. I am having a lot of trouble with this and need some help. I think it will increase the appeal of my app when it is running. This is a problem I have had for a while and have been struggling with so anything can help me. I don't know if this is a built in feature in Xcode or if I need to do this programmatically.
Any suggestions would be greatly appreciated.
Thanks in advance.
You could simply apply an affine transform to the button. Something like this:
import Darwin
...
myButton.transform = CGAffineTransformMakeRotation(M_PI/2)
However, that will rotate the entire button, including the title. If that's not what you want then it gets more complicated.

PCLVisualizer.addPolygonMesh doesn't show anything

using my code I want to visualize mesh.
I use this code snippet, just after poisson.reconstruct function.
Running it, the viewer shows nothing, and the terminal says that there is no mesh.
Why? Is there an error? Where? How to solve?
Thanks in advance
I think you have to call the spinOnce() method in the loop:
visualization::PCLVisualizer viewer("Simple Cloud Viewer");
viewer.addPolygonMesh(mesh);
while(!viewer.wasStopped()) {
viewer.spinOnce();
}
According to the documentation this method updates the screen.

what is the xcode code for current image center?

when you wish to know the text of a label you use labelName.text what is the equivalent for image.center?
image.center is exactly what you use.
NSLog(#"%#",NSStringFromCGPoint(image.center));
NSLog(#"%f",image.center.x);
NSLog(#"%f",image.center.y);
well..it seems there is no property for it...weird ( or i don't know about it..lol)
do something like :
CGPoint imageCenter=CGPointMake(image.size.width/2,image.size.height/2);

How to display y Axis on the right side on Graph

I want to implement a candlestick graph using core-plot. I have a little problem with yAxis. I'd like to display the yAxix on the right like this examples:
http://www.schaefferresearch.com/images/schaeffersu/tutorials/charts/candlestick.gif
http://www.mafiaforex.com/wp-content/uploads/2010/07/candlestick.gif
How?!
Looking at the examples I tried to change yAxis.orthogonalCoordinateDecimal with no result.
Thank you for your help!
Bye
G.
Try changing xAxis.orthogonalCoordinateDecimal.
yAxis.axisConstraints = [CPTConstraints constraintWithUpperOffset:0.0];
yAxis.orthogonalCoordinateDecimal = CPTDecimalFromDouble("some number on X axis");
should work.

Resources