Exporting an Excel plot as SVG or PNG [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
After I have created a plot in Excel , is there a way to export the plot to SVG while retaining the explicit characters and vector strokes. (I do not want to have to capture the screen and export).
UPDATE: I do not want to export in some complex and potentially lossy format such as PDF or Word. The graphics strokes are there in PDF, I just want to get them out. Also I don't want to dump as CSV and replot using some other tool.

I think you have set yourself a very difficult task.
If you copy a plot area to the clipboard and look at the formats available with Application.ClipboardFormats, the only vector format offered is PICT. Perhaps this could be an avenue to investigate...

If you 'Print to PDF' you should be able to convert it to SVG-format. There's several converters online, I would use Adobe Illustrator though.

Copy it as a plot into powerpoint. Save in powerpoint as a emf. Open the emf in e.g. inkscape, then save as svg. Vectors are preserved.

2020 Update
This is now easily possible manually
Just right-click the chart and select "Save as Graphic" where you have the option to save as .svg.
Solution for VBA
Unfortunately, this relatively new feature is not yet supported by the object model. Chart.Export fileName:="MyChart", FilterName:="SVG" will result in an empty file as of now. Therefore, exporting with VBA is still very difficult and only possible by automating the "manual" method. I created a solution that is doing exactly that and tried to make it easy to implement in other code. For the full solution, check out this answer.

Save to PDF and operate it with InkScape which is totally free and sharing similar function to Illustrator.

Solution is simple, just copy and paste the plot to Inkscape. It keeps original size and all shapes are vectorized.

Related

Transforming black and white PNG logo to SVG path and remove background [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 months ago.
Improve this question
I have a black and white logo as a PNG. Now, I need to use it in Inkspace to add some text and make an svg out of it. I had a satisfying result but turns out the logo has a white background.
I had a look at the svg code and found out the image wasn't represented as a path but as an <image>.
What i need is to transform the png image into a svg path. And make sure that there is no background. What is the easiest way to do that?
I'm not familiar at all with image manipualtion programs. I have GIMP and Inkscape installed. But i've almost never used them, so detailed steps would be appreciated.
You can use the Inkscape path tracing feature to convert it to vectors. Select your image and then select Path -> Trace Bitmap. This should automatically trace the image leaving you with a set of one or more paths.
Depending on your image, you may get mixed results. In that case you can use the path editing tools to cleanup the trace. Or use those tools to recreate the image manually from scratch.
First go to this website https://www.remove.bg/upload
To remove the background after saving the image, go to Inkscape, fill bounded areas, choose the desired color and change the color of the image, then you will have an svg image

Stop Excel Scientific Notation Conversion [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Is there a way to STOP EXCEL from converting data into Scientific Notation?
Microsoft Excel apparently assumes that any data that contains numbers and an E is supposed to be scientific notation and converts it.
17195E000039 automatically changes to 1.7195E+43
17221E000112 automatically changes to 1.7221E+116
Is there a way to prevent Excel from doing this so it doesn't continue to cause problems for all of us users who never want to use SCIENTIFIC NOTATION ever? I cannot foresee any time where I will EVER want to have anything converted to scientific notation. This useless functionality only causes problems.
How do I stop Excel from trying to convert text into scientific without manually performing some operation first?
Unfortunately, the data comes from another system that exports to excel that I cannot change. I cannot manually change the page beforehand and going through afterwards sucks.
Issue also occurs with simple strings (eg "1E6" from microtitre plates). I don't think it's a simple as pnuts or Scott's responses.
See similar Q I just posted with more detail, toy reprex example, and trial solutions that have failed. How to stop csv files converting characters (eg plate well IDs 2E6) to scientific notation?
Is there a way to STOP EXCEL from converting data into Scientific Notation?
As explained by #Scott Craner: For you, No.
This is something that happens automatically when the data is written - by the time you see it it is too late.

Embedding fonts in inkscape [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Does any body know what is the current status of embedding fonts into an svg file that is readable by inkscape. I find the lack of embedded fonts severely impedes portability of svg files, particular if sending the file to a person who doesn't have admin access on their machine and cannot install fonts.
I tried to follow the instructions given at this link:
HOWTO: Embedding a font in a Linux Inkscape SVG document
but have been unable to get it to work, this link also suggests that it is possible:
https://answers.launchpad.net/inkscape/+question/83618
I, to be fair am trying to get this to work on windows, not linux (I don't have access to a linux machine right now). Does any one know of or have access to an actual svg file where this feature is working?
I think I have found a workaround for this.
If there isn't too much text in the SVG, you can select all the text objects and Path-> Object to Path, then you can no longer edit the text, but the resulting file can be correctly parsed by any viewer even if the font is not installed.
If there're lots texts, this operation may increase the size of SVG file.
I got and answer over at graphicdesign.stackexchange.com from user Paolo Gibellini:
In the current version of Inkscape seems not yet possible to embed SVG fonts (see also here a little example).
In 0.48 Release Notes:
There is a known limitation where the list of glyphs in the dialog are not yet rendered in the selected font, but still in the system font
In 0.47 Release Notes there is a more detailed explanation of the limitations:
As a SoC 2008 project, JucaBlues implemented initial parsing and rendering of SVG Fonts. You can design fonts within Inkscape, but using them to render text on the canvas is not yet supported. We are waiting for libpango to implement proper support of the user-fonts feature.
The render of SVG Fonts is not supported by Firefox or Internet Explorer, and Inkscape Wiki tell us that:
SVG2.0 may replace SVG fonts by WOFF
(let's wait and see)

How do I change the Default Print Configuration in DraftSight [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am using DraftSight the free CAD software from Dassault Systems. I have set up my print configuration the way I need them to be for my existing .dwg files. I would like to apply my new print configuration 'Portrait' as my default print configuration. As far as I can see there is no way to change the default print configuration. Can anyone explain how to do this?
I had trouble with this too. The documentation is quite poor but, there is an informative video here.
The print configuration defines the paper size, scale, what to print, etc. The defaults are apparently set for inch units, so if you are using mm you get a ridiculously small paper size. As you have found, you need to apply a custom print configuration to get it to display and print nicely.
It's quite easy to do this on the fly, but it's tricky to get it to work automatically. I managed to do it using the method below.
First define your custom print configuration. Open the Print Configuration Manager from the File menu or by right-clicking a sheet tab. Set up your printer name, paper size and a scale of 1:1. You can put mm next to the scale, but I don't think it makes any difference. In the config manager it's a good idea to set 'Show dialog box on creation of new sheets'. This means that every time you create a new sheet it will ask you what print configuration to use. This avoids getting the silly defaults each time.
You can now automate the process so DraftSight applies your custom print configuration automatically. Do this using the 'Assign to...' button in the config manager. This sets up a mapping between the name of the sheet and the print config. If you assign your custom print config to the default sheet names 'Sheet1', Sheet2', etc your custom configuration will be applied by default every time there is a sheet of that name.

Open xlsx with vim [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm frequently getting .xslx files and do not have the newest Excel to open. Open Office takes too long to open them as does converting software for older Excel versions.
So, I want to open the xlsx file using vim (or maybe notepad++). However, apparently it is not stored as standard text, so trying to open it results in random characters.
Is there some way I can get vim or Notepad++ (or some other text editor) to open an XLSX file?
XLSX is just a zip of a bunch of XML files, so you could unzip them and view the XML, but that isn't going to get you very far, because the XML itself is not all that easy to read. My experience with it isn't extensive, but basically, in worksheets with formulas and numbers, you'll see an XML file for each sheet, containing an element for each cell with information about the cell and what it contains (<f> tags for functions, v for value), except if the cell contains a string, the value is a number referencing it to sharedStrings.xml, which contains basically a list of all unique strings in the entire workbook. I don't see an easy way to just open it up and read the contents the way you seem to want to.
It's possible that converting the xlsx file to something simple like CSV may be faster than trying to convert it to xls, which is a different binary format, but I don't know. Another option is rolling your own conversion program using something like Perl's Spreadsheet::XLSX. I don't know how much this will help you, but hopefully you can get enough information from this to know where to look next.
If you don't like Libre Office, you can use MS Office online and export it to .csv comma-separated which you can edit more easily with vim.

Resources