4
$\begingroup$

There is a very nice cdf info graphic on the Wolfram Webpage (http://www.wolfram.com/cdf/uses-examples/infographics-full-example.html). I'd like to have a look at the code as I'd like to do something similar. However, they only provide the cdf. Is it possible to extract the code from this? – Thanks.

$\endgroup$
3
  • 1
    $\begingroup$ I have mailed and asked for the code, then the support mailed it. Don't know if this is true for this example, though. $\endgroup$
    – FredrikD
    Mar 21, 2014 at 9:30
  • $\begingroup$ OK, thanks. I'll try that. $\endgroup$ Mar 21, 2014 at 14:38
  • $\begingroup$ @MockupDungeon, and what is the result of your request to Wolfram support? $\endgroup$
    – garej
    Jan 30, 2016 at 19:12

1 Answer 1

2
$\begingroup$

You can try to download the *UnderstandingEarthquakes.cdf" with a software such http://www.httrack.com/, after about three minutes you will find the *.cdf in the follow directory:

projectname\www.wolfram.com\cdf\uses-examples

try to open "UnderstandingEarthquakes.cdf" with a program such as Notepad++.

I hope you can find the information you need.

Edit To restore full .nb, copy Notepad++ or Sublime text of .cdf to clipboard and paste it into new notebook in the Row-input mode (Ctrl-Shift-E). Go back to the notebook mode with the same combination. Then, in spite of the red error rectangle in the first row, press Shift-Enter and the desired result should appear (you may use InputForm to see its content in readable details).

$\endgroup$
4
  • $\begingroup$ I can download the cdf, I just can't access the code behind it. $\endgroup$ Mar 21, 2014 at 14:38
  • $\begingroup$ @MockupDungeon ok and opening the file *. Cdf with a software like Notepad++ can not find anything interesting in the code visible? $\endgroup$
    – plus91
    Mar 21, 2014 at 14:44
  • $\begingroup$ You are right that I can then look into the file, however, all the commands are in their 'raw' form, which makes the code highly complex. So not really useful, although a nice workaround. $\endgroup$ Mar 21, 2014 at 16:53
  • $\begingroup$ @MockupDungeon ok at the moment I have no other ideas. If it can be useful, copying part of the code in a spreadsheet Mathematica "*.nb" .You can see it through highlighting. $\endgroup$
    – plus91
    Mar 22, 2014 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.