如何在绘图三维散点图中添加y轴下方的箭头?

时间:2017-08-10 20:42:54

标签: r plot plotly

可以按照示例创建带有注释的3D散点图:

extension UIView {

    func asImage() -> UIImage? {
        if #available(iOS 10.0, *) {
            let renderer = UIGraphicsImageRenderer(bounds: bounds)
            return renderer.image { rendererContext in
                layer.render(in: rendererContext.cgContext)
            }
        } else {
            UIGraphicsBeginImageContextWithOptions(self.bounds.size, self.isOpaque, 0.0)
            defer { UIGraphicsEndImageContext() }
            guard let currentContext = UIGraphicsGetCurrentContext() else {
                return nil
            }
            self.layer.render(in: currentContext)
            return UIGraphicsGetImageFromCurrentImageContext()
        }
    }
}

但是,有没有简单的方法在y轴下面添加箭头?

enter image description here

0 个答案:

没有答案