16

I wanted to learn how to make palettes, so I've made this bunch.

They are still beta, but I want to share them for cross-platform checking and bug hunting.

The functions aren't mine, and proper credit is included. I've made very few modifications to the original author's code in order to fit the palette programming requirements. A general credit to Szabolcs, from whom I've stolen the palettes' skeleton.

The master plan is integrating all the palettes once they are debugged enough.

Installation instructions for all palettes

You can download the palettes by executing the provided commands. After the download, a new notebook will open. Execute the (palette) code in the new notebook and you'll get something like this:

click on me!

Presto! You (should) see the palette.


First one: Heike's wonderful torn[]

Mathematica graphicsMathematica graphics

Command to download:

NotebookPut@ImportString[Uncompress@FromCharacterCode@Flatten@
            ImageData[Import@ "https://i.sstatic.net/bkLIy.png","Byte"],"NB"]  



Second one: Mr. Wizard's answer to the xkcd fly catcher question

You'll need to install this font first.

enter image description here

Command to download:

NotebookPut@ImportString[Uncompress@FromCharacterCode@Flatten@
            ImageData[Import@ "https://i.sstatic.net/RJueG.png","Byte"],"NB"]  



Third one: the generator for the download method used in the previous ones

A related discussion here (See Sjoerd's and my answers).

Warning: I've got mixed reports on this one. AFAIK it worked at least for Sjoerd and me (Win$). Linux and Mac users reported problems. Download it only if you agree with the potential usefulness of the method and you wish to help debugging.

Command to download:

NotebookPut@ImportString[Uncompress@FromCharacterCode@Flatten@
            ImageData[Import@ "https://i.sstatic.net/hjjsf.png","Byte"],"NB"]
17
  • Feedback most welcome! Commented Oct 4, 2012 at 12:33
  • 1
    So, you're hiding the palette code in images you've stuck up on imgur? Clever.
    – rcollyer
    Commented Oct 5, 2012 at 10:58
  • @rcollyer The main idea isn't about "hiding" it, but about finding a safe place to share files that doesn't fit well in a question or answer, like here. This method hasn't been well received by the community (see Sjoerd's and my answers here), but I find it very convenient sometimes. Commented Oct 5, 2012 at 11:41
  • You know I hadn't been paying attention to that conversation.
    – rcollyer
    Commented Oct 5, 2012 at 11:49
  • @belisarius Thanks. I downloaded the palettes and will give feedback if anything comes up. Commented Oct 5, 2012 at 16:32
  • @MarkusRoellig Will be much appreciated. Enjoy Commented Oct 5, 2012 at 16:41
  • @belisarius why don't you add the Upload the active notebook to SE? Is it somewhere else?
    – chris
    Commented Oct 6, 2012 at 13:44
  • @chris It's the last one. It uploads the nb to SE and copies the downloading code to your clipboard Commented Oct 6, 2012 at 16:35
  • @belisarius It does not seem to work for me. I did get a notebook downloaded; when I run it I get a button "Upload active Notebook to SE"; then I am confused: how can I get focus on any other notebook while pressing this button. In any case when I press this button it says "SEnbUploader`stackImage::err: Server returner error: You didn\'t enter a URL". Could you please guide me through this?
    – chris
    Commented Oct 14, 2012 at 20:07
  • @chris Could you provide your OS and Mma version info? Commented Oct 14, 2012 at 20:10
  • MacOS 10.7.5 Mathematica 8.0.4
    – chris
    Commented Oct 14, 2012 at 20:15
  • @chris can you come to chat? Commented Oct 14, 2012 at 20:15
  • @belisarius I wonder why the AspectRatio of the xkcdified plot is changed. Compare Plot[Sin[x]*Cos[x], {x, -\[Pi], 3 \[Pi]}] with the result which has a very different ratio. Commented Oct 30, 2012 at 10:04
  • @MarkusRoellig Yeap. It works well only when both scales are equal. I haven't spend time debugging it, though. Commented Oct 30, 2012 at 11:41
  • How's your plot labeling palette coming along? Any chance I could beta test it for you? (Yes, I can make use of it ...)
    – rcollyer
    Commented Nov 12, 2012 at 15:31

0

You must log in to answer this question.

Browse other questions tagged .