No axis shown on Xcode 7 playground

I am trying to build a comb in the Xcode 7 playground. I have the following code (obtained from this post ):

import XCPlayground let sineArraySize = 64 let frequency1 = 4.0 let phase1 = 0.0 let amplitude1 = 2.0 let sineWave = (0..<sineArraySize).map { amplitude1 * sin(2.0 * M_PI / Double(sineArraySize) * Double($0) * frequency1 + phase1) } func plotArrayInPlayground<T>(arrayToPlot:Array<T>, title:String) { for currentValue in arrayToPlot { XCPCaptureValue(title, value: currentValue) } } plotArrayInPlayground(sineWave, title: "Sine wave 1") 

And the Assistant Editor shows me this:

enter image description here

But I want a normal graph (with axis, etc.) as follows:

enter image description here

How can i achieve this?

+5
source share
1 answer

Unfortunately, it seems that Apple has removed reliable graph labels in favor of an unlabeled blue color with tiny tiny dots that the user needs to click “just right” to display the value. From a clip I saw at WWDC in which a speaker talks about “improvements” to the playground, he said that this immediate blue line is simpler and more intuitive - contrary to the history of mathematics. I can only hope that Apple will one day restore functions that they have inexplicably removed (probably in an attempt to make the software more stable).

+4
source

Source: https://habr.com/ru/post/1232091/


All Articles