hi Alvin,
thank you for your comprehensive explanation!
The color scale stems from a PDF file produced with ncl[1]:
I tried several PDF viewers, in any case the color scale was displayed
in the correct way. Therefore I would expect the same after importing
(File->Import) and exporting it (to eps or pdf) using inkscape.
It this maybe a inkscape bug?
As a workaround I found that I can export the color scale as bitmap and
then re-import it into inkscape. After this, the exported eps looks the
way I expect it to be.
cheers,
stefan
[1]
I don't know much about bitmaps, so you may get a better answer
from someone
else, however here are a few comments. The problem appears to be related to
the fact that this was originally an embedded png image. The size of the
image was 1 pixel by 1 pixel. This is shown in the svg tag
<image width="1" height="1"
transform="matrix(1,0,0,-1,0,1)"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAABCAYAAADuHp8EAAAABHNCSVQICAgIfAhkiAAAAERJREFUCJkBOQDG/wG2aij/FxsXABQgJQAUKCAAABMaAAoVHAAACkUAAAAAAM4AzgDM8eUAus3tABvtKQCXxugA/cioAGJcEJMX3vuCAAAAAElFTkSuQmCC"
id="image20862" />
Then the image was expanded by a factor of 465 horizontally and 25
vertically. This is shown in the element
transform="matrix(465.32309,0,0,25.338759,163.05532,330.72791)"
During this expansion, Inkscape chose to interpret the color gradations in a
discrete way as 14 separate colors, while the postscript file apparently
interpreted these as a continuous color scale. I think the Inkscape
interpretation is probably the correct one; however, the way to avoid this
in the future would be to import a full size png image that does not need to
be scaled.
cheers,
Alvin Penner
--
View this message in context:
http://inkscape.13.x6.nabble.com/discrete-color-scale-object-becomes-cont...
Sent from the Inkscape - User mailing list archive at
Nabble.com.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Inkscape-user mailing list
Inkscape-user(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user