Message Boards Message Boards

0
|
16170 Views
|
17 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to increase the size of a CDF on screen

Posted 10 years ago
When I open a CDF document in a browser, for example. on the WA Pro or any interactive demonstration projects, I often need to increase the size of CDF to be able to actually see what is happening. Probably I'm doing something wrong, but in WA-Pro the height is often severely limited and on the other CDF is usually the width is limited. 
How to get bigger CDF and maybe even a full screen view ?
POSTED BY: Math Lind
17 Replies
Posted 10 years ago
POSTED BY: Gary Palmer

Gary, not sure if this is what Andre means, but the notebook you attached has no code (Andre: "...original source notebook..."). You added code in the post but it is corrupted somehow - if you evaluate it, it will break. This happens when code is not formatted properly. This tutorial will tell you how to format code so it can be copy-pasted from Community to a notebook. I see moderators already tried to format your code - but it is too late - some typos creeped in. You can edit your last post, paste code again and format it correctly. Alternatively you could just attach a notebook with the code.

I hope this helps. Sam.

POSTED BY: Sam Carrettie
Posted 10 years ago
Attachments:
POSTED BY: Gary Palmer

@Gary, thanks for the source notebook. I evaluated it and used the export wizard to embed the result, and it all works just fine, exactly like my previous examples show. I can only restate that the particular problem you are seeing with mismatched object size settings is likely do having exported from a notebook that was magnified.

The NB you attach here does not have such a setting, but the results you show on your site are exactly what you would see in the magnified source notebook scenario, i.e., the object size values in your embed code ('Log.function.emball150.cdf', 646, 508) are precisely the numbers you get when magnifying the notebook to 150%. I have a hard time believing your issue is anything other than this, and you should simply run the export wizard with the notebook at 100% and recopy/repaste the embed code for your page.

At this point, since I can't reproduce a problem with your content, I think you might have to pursue this directly with tech support to see if there is some other anomaly at play here (which I can't currently think of). Sorry I can't be more help on this particular point.

POSTED BY: Andre Kuzniarek
Posted 10 years ago
POSTED BY: Gary Palmer

@Gary, without seeing your original source notebook, I can only guess that the reason your embed object size does not match your CDF might be from exporting while the original notebook was set at a magnified size. Otherwise, I have confirmed no problem getting precise output as desired on Mac and Windows equally. This particular magnification issue should probably be considered a bug, obviously it has the potential to be confusing. I'll get it reported (if it hasn't been already), thanks.

POSTED BY: Andre Kuzniarek
POSTED BY: Andre Kuzniarek
Posted 10 years ago

@Andre, the notebook is attached. The only change from the previous attachment was to the background of the cell. The size is specified according to previous instructions as ImageSize --> Medium. I put it in the GraphicsRow options because Manipulate rejected it as an option. That is, it prints in red within Manipulate, but it seems to work the same way. The white panel remains. The only other object options that might affect size are the Graphics Plotrange options, but those are necessary to the plot.

I would like to copy and paste the embed code provided by the export wizard, but it doesn't function on the UNLV server. When I use it, I get no image at all, as you can see here:

https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/Log.function.html

Do I need to ask them to install something to make this work?

P.S. By mistake, attachment is a .cdf rather than a notebook. See messages above or below for the notebook attachment. The code in a message below is also functional now (July 31, 11:22 PM).

Attachments:
POSTED BY: Gary Palmer

@Gary, without access to your source notebook, I can only guess that the export process is calculating the embed size based on some additional content that is not displayed. You can surely eliminate the white panel by reducing the object size (note the position of the CDF icon in the lower right corner is based on the object size settings).

I do however recommend you copy and paste the embed code provided by the export wizard, rather than just using the "embed" tag.

POSTED BY: Andre Kuzniarek
Posted 10 years ago

@Andre, It does help. I used Format to change the background color of the cell to light gray and Exported the notebook as an embeddable CDF. In the html file I used the sizes provided by the Export dialog for the bounding box. I now get a gray panel that includes the CDF cell, extends the full width of the html bounding box, and resizes properly. But I see a white panel below the gray panel. Changing the height and/or width of the html bounding box changes the size of the image, but leaves the white panel. I see the same result in Firefox and Chrome.

https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/Log.function.html

POSTED BY: Gary Palmer
Posted 10 years ago

@Andre, thanks. That's how I would like mine to behave.

POSTED BY: Gary Palmer
Posted 10 years ago
POSTED BY: Updating Name
Posted 10 years ago
Attachments:
POSTED BY: Gary Palmer

@Gary, here's my CDF example in its original background:

http://members.wolfram.com/andre/cdf/webscaling

I will take a look at your particular example a bit later today to see if I can be of further assistance, thanks.

POSTED BY: Andre Kuzniarek
POSTED BY: Andre Kuzniarek
Posted 10 years ago

This is a good question and I am surprised no-one has come up with an answer so far. I would also like to increase the size of the output cell on my Manipulate exercises.

POSTED BY: Hamish Small
Posted 10 years ago

It's been a whole month since Math Lind posted this question. I sure hope that someone has an answer for this. I would also like larger sizes and I would like a reliable way to match the size of manipulate box to the size specified in the browser. For an example of the problem, see any of the demos at https://faculty.unlv.edu/gbp/mma/VisualComplexAnalysis/CDF/.

POSTED BY: Gary Palmer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract