Questions tagged [svg-format]
Questions on the use of Mathematica to export in SVG vector graphics format.
37 questions
2
votes
0
answers
157
views
Can Mathematica convert bitmaps to vectors?
I know that in Mathematica doesn't seem to support vector graphics for 3D ploting, e.g. exporting-2d-projection-of-3d-graph-in-svg-form. But as far as I know, some paid software can achieve this. ...
7
votes
4
answers
1k
views
Converting an Unicode's image into polygon data for an SVG
So, I have the the Chinese character 熙, which I can easily turn into an image:
img=Rasterize[Text[Style[FromCharacterCode[{29081}], FontSize -> 300]]]
which ...
2
votes
1
answer
861
views
How to convert a <table> element into SVG image?
I want to get the SVG format about this <table> element in this page. It looks like this:
But I want to get it with a SVG ...
0
votes
0
answers
64
views
Avoid rounding in svg exported colors
The code
ExportString[Graphics@{Red,Rectangle[]},"SVG"]
yields
...
6
votes
3
answers
386
views
How to export a .svg with same width as the front-end window
ResourceFunction["CreateSortableUniqueID"][20]
As we see, each row has 2 UUID in the current window. But when I export ...
3
votes
0
answers
108
views
Mathematica failing to export consistent layout
Mathematica is a great tool but when it comes to layout generation is quite poorly intuitive: I would love that exporting to images and SVGs could be more friendly and compliant with graphic design ...
4
votes
2
answers
495
views
How to export a meshless SVG?
This problem does not exist in 13.2.1 anymore
I often need to export some svg with mma, but RegionPlot's diagrams will have some extra mesh after exporting SVG:
...
8
votes
1
answer
193
views
Restricting TextOutline mode to special characters when exporting SVGs
Exporting graphics to SVG in Mathematica defaults to converting all the text to outlines, at least since version 11 as far as I can tell. This is more robust for viewing on different devices, but it ...
5
votes
0
answers
1k
views
Exporting graphics as vector image
I am just trying to get my head around when mathematica stopped (largely 3D) exporting complex graphics as a vector image. I believe it was in one of the 11 versions.
I understand there are lots of ...
10
votes
0
answers
204
views
Why 99.998474% instead of 100%?
I want to export a red square to the SVG file
Export["red_square.svg", Graphics[{Red, RegularPolygon[4]}]]
I noticed that in the exported SVG file, the ...
3
votes
1
answer
103
views
How to generate non interfering SVGs (Cloud embedded)?
The problem
Please run this in the Cloud:
...
0
votes
0
answers
178
views
Problems with nonalphanumeric characters when exporting to PDF/SVG on Mma 12
It seems that exporting cells containing nonalphanumeric characters to SVG or PDF formats doesn't work as it should in Mma 12 on Linux (Fedora 30). For example
...
19
votes
4
answers
2k
views
How to import SVG files?
In the document I found that SVG files can be exported, but there is no information of Import.
How can I do that?
3
votes
0
answers
87
views
Is there a limit to the amount of data that can be Run?
I need this command to work through the WolframKernel and it seems well beyond my understanding why it does not work above a certain amount of data size I'm passing to ...
5
votes
0
answers
161
views
Specify an SVG encoding algorithm?
This recursive function definition creates a number series that I'm interested in:
f[y_][x_] := f[y][x] = Mod[10 f[y][x - 1], y];
f[y_][1] = 1
When applying it ...
0
votes
1
answer
842
views
How to save the image generated by Plot3D as svg? [duplicate]
pic11 = Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}];Export["ff.svg", pic11]
The generated svg diagram is very vague, why is this? How to convert the map ...
2
votes
0
answers
275
views
Saving in 2D and 3D in vectorial (pdf or svg) format
Good Day everybody,
I have difficulties to save both 2D and 3D plots in vectorial format.
I can get acceptable results if I save manually: righ-click on image, "Save Graphic as..." or "Print as...". ...
-1
votes
1
answer
205
views
Visualising the Twelve Days of Christmas in 3D [closed]
On a related topics, here. I am wondering if it is possible to make a better visualisation of this svg file in Mathematica, so I can see it in 3D and rotate it too.
Note if you pause your mouse onto ...
6
votes
3
answers
1k
views
Why do grid marks appear when exporting SVG but not EPS?
Observe the following Mathematica Code:
...
8
votes
1
answer
2k
views
Exporting 2D projection of 3D graph in SVG form
For 3D, Mathematica does not export SVG as vector graphics, it just puts an encoded png image inside svg file. Same happens if one exports as .eps or .pdf
This question does not address the problem ...
0
votes
0
answers
260
views
Using Export to save output of Show as an svg file makes disorders text in the files
I used the code shown below to save the output of Show:
...
7
votes
1
answer
846
views
How can I copy a figure to the clipboard in SVG?
I frequently include plots in my emails. The easiest and most reliable way I have found is to just capture a part of the screen using greenshot (Windows) and paste into the message.
Microsoft ...
2
votes
1
answer
158
views
Exported SVG graphic has numbers along edges
I'm trying to export a stream plot to an SVG grapic. I make the stream plot like this:
g = StreamPlot[{-x, y}, {x, -3, 3}, {y, -3, 3}]
Then export it like this
...
4
votes
1
answer
248
views
The width and height for resulting SVG when Exporting
I Export a Graphics object to SVG, but how do I control the bounding box in the resulting SVG file? Here's my code:
...
2
votes
0
answers
185
views
How to get smooth fonts in SVG graphics generated through a WolframScript script?
Below are screenshots of the x-axis labels plots generated and exported in SVG format using exactly the same code, either "interactively" or "programmatically":
interactively
programmatically
By "...
4
votes
0
answers
311
views
Exporting rasterized graphics to svg does not create a single raster image in Mathematica 11
I am trying to export a rasterized density plot with vector axes and vector graphics overlayed. E.g.
...
0
votes
0
answers
104
views
Problem displaying "/" correctly in exported svg file of Plot in Mathematica 8
In a plot, I use "/" on the axes labels to denote units. E.g. "t/s" meaning time in seconds. I believe this is pretty standard in Physics.
...
9
votes
1
answer
523
views
Plot axes are not exported to SVG properly in Mathematica 10.1
In the past, I was able to export Mathematica plots as SVG files with relative ease. However, when I tried to do this recently, I found that the text in the plot axes was rendered completely illegible,...
2
votes
1
answer
797
views
Getting Mathematica 9 to export text and axes of a plot as vector graphics in SVG
Minimal working example:
...
5
votes
1
answer
2k
views
Problem When Trying to Export Graphics with Transparency to SVG
I'm trying to export a graph as a graphic to an SVG file with transparent background. When the background is specified as a color (or unspecified), it works just fine. When the background is specified ...
2
votes
0
answers
636
views
Read in Bézier curve from SVG file
I am trying to do some calculation of some SVG file. After reading in with Import["filename", "XML"] and some easy operation, I can get the string of the Bézier ...
8
votes
1
answer
427
views
Avoiding overcomplicated structure of groups, masks and splited text on vector format plot export
I'm trying to generate a template for exporting figures and plots in a consistent way that will allow easy editing in any vector based drawing software (such as illustrator). My problem is that ...
12
votes
1
answer
4k
views
How can I set id attribute of elements when I export an SVG file?
Suppose I have a Mathematica graphic such as
g = Graphics[{Disk[{-1, 0}, 1/2], Rectangle[]}]
I would like to be able to export this graphic from Mathematica as a ...
12
votes
1
answer
2k
views
Exporting Mathematica expression as SVG
I was thinking it would be nice if I could export Mathematica expressions as svg, but I am having some issues. At first blush everything seems to work fine. This piece of code does produce a svg file:
...
45
votes
4
answers
7k
views
How to translate interactive graphics from Mathematica to standard HTML+SVG?
I have a simple interactive plot in Mathematica, with controls for various parameters. The point of the plot is simply that users can explore how the plot changes as the parameters change by ...
6
votes
2
answers
701
views
How can I get Mathematica to include size information in exported SVG?
When I use Export to export graphics in SVG format, the exported file contains no width ...
23
votes
1
answer
907
views
Getting EPS imports to respect the original fill rule
One major problem in my attempt to answer to the CountryData flags question is that the way Mathematica handles filled curves differs from the way SVG and EPS style editors do. The latter two have the ...