New answers tagged

6

Online services, such as the one referenced in the question, require the image to be in one of the standard web formats (PNG, JPEG, etc.) First you must export the graphics into one of these image formats. This gives you a string of bytes (a file). Base64 is a way to encode a string of arbitrary bytes into a string of ASCII characters. As Kuba mentions, ...


3

For square markers of known size, this is actually straightforward with morphological transforms. Using: img = Import["https://i.stack.imgur.com/nLlB5.png"]; bin = Binarize[img]; radius = 9; We can use HitMissTransform with a 2x2 corner template to find the corners of each square, e.g. HighlightImage[bin, HitMissTransform[bin, {{-1, 1}, {1, 1}}]] for the ...


3

Here's a quick-and-dirty approach which might be helpful - but is pretty slow on reasonable image sizes (that is, could be improved): With[{bc = BinCounts[ReIm@data, Sequence @@ ({#1, #2, (#2 - #1)/256} & @@@ CoordinateBounds@ReIm@data)]}, bc /. Map[ Evaluate[# -> ColorData["SunsetColors"]@ N@CDF[...


1

Suppose you had data = NestList[f, z0, 10000000]. Then you might want DensityHistogram[ReIm@data, 100, "PDF"] or something similar, playing around with the ColorFunction option.


6

dat = Quiet@ReIm@NestList[f, z0, 10000000]; Binning Using the method from this answer for bin counts: res = 1000; epsilon = 1*^-10; indices = 1 + Floor[(1 - epsilon) res Rescale[dat]]; System`SetSystemOptions["SparseArrayOptions" -> {"TreatRepeatedEntries" -> Total}]; matrix = SparseArray[indices -> 1., {res, res}]; System`SetSystemOptions["...


Top 50 recent answers are included