[Jprogramming] How to put a plot in a document

David Mitchell davidmitchell at att.net
Sat Jan 16 10:54:23 UTC 2016


I was able to copy just the plot by displaying the JHS session in Chrome and 
then using right-click 'Copy Image' and, in Word, using Paste Special, with 
either the 'Bitmap' or 'Device Independent Bitmap' options.

In Firefox, I could right-click the image, select 'View Image', which opens just 
the plot as a new tab.  Then, I could right-click the image on the new tab, 
select 'copy image' and use Paste Special 'Device Independent Bitmap' in Word to 
paste the plot.

I could not find any way to capture the entire session output, with the HTML 
Canvas Plot, and paste it as a single paste.

I could not find any way in IE to capture the image with copy.

A screen capture tool, such as the Snipping Tool, will capture as much of the 
session as you can fit on one screen (including the plot) and then it can be put 
into Word using copy and paste.

David Mitchell

On 1/15/2016 23:00, Linda A Alvord wrote:
> If I run the code below, which contains a viewmat and a plot when I run it
> in JHS, I can copy the entire output into a Word document. Everything except
> the plot appears correctly.  Is there a way to capture the plot and insert
> it into he document?
>
>
>
> load 'viewmat plot'
>
>
>
> ]N=:8
>
> GRB=:|.255*1 0 2{"1 #:i.8
>
> shift=: -"1 <./
>
> grid=: 13 :'(1++"1 >./y)$0'
>
> draw=: 13 :'(i.#y)(;/y)}grid y'
>
> flight=: 13 :'viewmat draw shift y'
>
> ran=: 13 :'0 0,(-<:y)+?(y,2)$y'
>
> ]R=:ran N
>
> ]S=:shift R
>
> ]T=:|.|:draw shift S
>
> GRB viewmat i.1+N
>
> GRB viewmat T
>
> path=: 13 :'plot ;/|:([y),{.y'
>
> path S
>
> S
>
>
>
> Linda
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list