Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Ron D.

Pages: 1 2 [3]
31
Tips and Tutorials / Setting the order in which colors are plotted
« on: January 01, 2015, 02:28:44 AM »
Sometimes you want lines or points plotted in a certain order of colors. For example, when automatically range-brushing a PC plot axis, the blue end of the spectrum is plotted first and the red end is plotted last (in front), and perhaps you would at times like the blue end of the spectrum plotted in front (I have). Or perhaps you've color brushed different sets of lines and now need to put the colors into an order that makes the lines of important colors more visible.

You can manually set the plotting order of the colors after they are color brushed by selecting the menu option Brushes-->Show/Hide/Recolor Brushes. Hide all brushes and hit Apply. Then select Show and Apply for each brush in the order in which you want them plotted, where the last color brush you show will be the topmost color.

As an additional note, when the Plots-->Display Values on Mouse-Over menu option is selected, each polyline is highlighted and brought to the front of the other lines as the mouse moves across it. This disrupts the order of plotting, but the above process can restore the plotting order by color again.

Ron

32
UPDATE: Sliver v1.4 includes a feature to thicken selected lines in the PC Plot. In a PDF export, these lines will be plotted with a specific thickness you can specify in the Options-->PostScript/PDF Settings menu option. These lines are also rendered completely opaque regardless of the alpha transparency setting, and are drawn on top of the other lines for easier viewing.

Have a look at this PDF export (it's much better to download and open it rather than open it in your browser):

http://www.sliversoftware.com/Downloads/MarkPlaceAtSplitsNoHalfTop2000Finishers_101714v1.pdf

It's a PC plot of the Overall Place at each split for the top 2000 finishers of the 2014 Berlin Marathon. The person I made this for (Mark) is represented by the dark blue solid polyline on top of the other semi-transparent polylines. To accentuate the visibility of his trace, after the export I directly edited the PostScript file created as an intermediate step to the PDF, and then created a new PDF from this edited PS file using Acrobat Distiller.

I've also attached this edited PostScript file, which you can download and then open in a text editor. (Yes, Sliver writes every line of this file...).

http://www.sliversoftware.com/Downloads/MarkPlaceAtSplitsNoHalfTop2000Finishers_101714v1.ps

I knew Mark's final place in the race, so before I exported the PC plot I located his polyline on it by selecting the menu option Plots-->Display Values on Mouse-Over, zooming into the last scale of the PC plot, and moving the mouse until the highlighted polyline displayed his final place value on that scale. Then I swiped that line to select it and color brushed it in white.

When the setting for displaying values on mouse-over is enabled, each highlighted line is brought to the front, which can mess up the plotting order of brushes, e.g., if you range brushed an axis and you want the default blue plotted first and red last. So after zooming, selecting and coloring the desired line white it's a good idea to zoom out again and use the Brushes-->Show/Hide/Recolor Brushes menu option to first hide all the brushes and then show them again one at a time in the order you want the brushes plotted. Then you can export the plot to PDF.

After the export I opened the PS file and located the following two text  lines:

1.0000 1.0000 1.0000 setrgbcolor
1.9519 7.4915 m 4.8659 7.2346 l 7.7799 6.5696 l 10.6939 6.2900 l 13.6079 5.8743 l 16.5219 5.4965 l 19.4359 4.7483 l 22.3499 3.7734 l 25.2639 3.4787 l s

The first line is the command to set the color to white, and the next line is to draw a polyline between coordinates in the PDF file. So this is Mark's trace. I moved these two text lines to later in the file after the transparency was set back to none, and I added text lines to set the linewidth of that line wider than that which was specified for the other lines at the start of the file (derived from the export settings). I also set the color to pure blue. The final text is

[ /CA 1.0 /BM /Normal /SetTransparency pdfmark
[ /ca 1.0 /BM /Normal /SetTransparency pdfmark
% Mark's Trace.
0.03 setlinewidth
0.0000 0.0000 1.0000 setrgbcolor
% 1.0000 1.0000 1.0000 setrgbcolor
1.9519 7.4915 m 4.8659 7.2346 l 7.7799 6.5696 l 10.6939 6.2900 l 13.6079 5.8743 l 16.5219 5.4965 l 19.4359 4.7483 l 22.3499 3.7734 l 25.2639 3.4787 l s

where the % at the start of a line indicates it is commented out. The fact that this polyline is listed last also means it is plotted on top of the other polylines. Opening this PS file in Acrobat Distiller (a double-click for me) then creates the PDF with Mark's trace nicely accented relative to all the others.

Ron

33
Tips and Tutorials / Printing exported PDFs with transparency
« on: January 01, 2015, 01:02:21 AM »
If you export one or more plots to PDF with some transparency, you may find that printing this PDF takes a very long time or it simply hangs, as there is too much processing to be done with thousands of vector lines crossing with transparency at an enormous number of intersections. A better way is to save the PDF as a PNG file, choosing 300 or 600 dpi to get a high resolution picture, and then print the picture.

Ron

34
Tips and Tutorials / Getting black backgrounds in PDF exports
« on: January 01, 2015, 12:57:16 AM »
It took me quite a while to find out why my exports of plots to PDF had dark gray rather than black backgrounds like the default plot backgrounds. In the Acrobat Distiller settings, under the Color options, choose to "Leave Colors Unchanged" rather than converting them to CMYK.

Ron

35
Tips and Tutorials / Performance tip #1
« on: January 01, 2015, 12:53:23 AM »
If you have multiple plots up at once or an animation is running and you don't need to view the main PC plot, minimize the main PC plot window and you should see a significant performance improvement.

Ron

36
Announcements / Welcome!!
« on: December 31, 2014, 10:28:10 PM »
Thanks for coming! Feel free to browse posts or submit your own topics and replies as a guest. At some point I'm sure that spam will become a problem and I will have to require registering as a member to post, but for now it's wide open.

Cheers,

Ron Doerfler

Pages: 1 2 [3]