Program or method to standardize figure format and create multiple, similar figures - excel

I couldn't find documentation to help me with this problem - [EDIT: ...and the only recommendations I've gotten from colleagues is what I have mentioned below].
I'm developing 23 figures that must include a PNG image of a state, and two charts with accompanying state data. Each chart has a slightly different scale, though the units will be the same (I say this because it makes formatting a headache). The only way I know how to make these figures is to create a slide in Powerpoint, inserting the charts and PNG and formatting each slide "by hand" to match all the others. This is time consuming and aggravating, and I'm optimistic there's a better way.
Question: What program/methods do you recommend for creating a standard figure format?
Ideally I would like to copy-and-paste charts from Excel, and insert a PNG image.

You could look into R to do this. Not sure what the PNG image is, but you can use R also to plot data on maps (using heatmaps or otherwise) if you would want to. You can import an image so you can also work with your PNG image if needed.
As for the charts you then could create them using R instead of excel and put everything together.
This way you can write a piece of code once and generate all the figures you need.

Related

How to print all the chart properties in Python-pptx

I have a existing chart in pptx file, i just want to update its values on daily basis, these charts are already plotted from excel and paste into pptx, i just want to modify the charts ,
but i don't know how many properties are there in charts like series, category and title properties.
i am able to print the chart series and category data, but when i modify these with chart.replace_data(chart_data)
i am getting error like below
return self._chart_part.related_parts[xlsx_part_rId]
KeyError: 'rId4'
I ma using below code to print the values ,
for series in chart.plots:
for i in series.categories:
cat_list.append(i)
for series in chart.series:
for value in series.values:
ser_list.append(value)
the graph looks like below
How can i modify such graphs with updated values which i will be passing from excel to pptx.
I suspect the problem is rooted in the "pasting from Excel" step.
One thing you can try is to right-click on the chart and choose "Edit values in Excel". If that doesn't work for any reason, that would explain the error you're seeing. If it does work, try saving and run the python-pptx code against the saved version.
An alternative, perhaps more reliable fix would be to recreate the chart natively in PowerPoint, starting from adding a new column-chart and adjusting it until you get what you see here. Then you should be able to update it daily with pretty much the code you mentioned (although your ser_list variable will accumulate values for all series in the chart if there is more than one).
To understand why this could be happening, it's important to observe that a chart does not have to have an Excel worksheet "behind" it. It can, and perhaps does in this pasting case, simply have fixed literal values that are embedded in the chart XML itself. The up-side of this is the pasting operation doesn't need to create a whole Excel spreadsheet, which might be tricky in a cut-and-paste context. The down-side is the values can't be conveniently changed using the standard methods.
I haven't tried working with one of those lately so I don't know if editing and saving the data adds a new Excel object created from the embedded values or not, but this might explain the behavior you're seeing.

How do I do a hard refresh of a linked plot in my PowerPoint that is linked to a plot in Excel?

I have a rather large PowerPoint file which I have been using to document my progress on a project for the past year. I have linked numerous plots from two specific Excel files into this PowerPoint file using the typical copy and paste method.
However, I had difficulty with typing, since it would take so long for the words to appear on the slides, and often times parts of words would be incorrectly identified as being misspelled. Since I had to write a lot, I ended up uninstalling all my Microsoft office and then reinstalling to try and resolve the issue.
Although this issue was somewhat ameliorated, a new problem arose. Namely, the plot titles and axes labels of most of my plots have disappeared. I have checked that the plots' link to their origin in the Excel files have not been broken, and have also tried to refresh the plots in order to get back these labels and titles, but this has not helped. Moreover, while some (but not all) plot titles are missing, almost all the axis labels are gone and replaced by integers. The names of my different series are gone as well, and replaced with generic "Series 1" and "Series 2" labels. Interestingly, the data itself in the plots is unaffected.
I do need these titles and axis labels, because they helped organize the information in my plots in conjunction with the notes in my slides. And while it would not be impossible to find every single plots' original copy in Excel and then copy and paste them again into PowerPoint, there are so many plots that this task would take an enormous amount of time (this file has been the product of almost a year's worth of work). Exacerbating this problem is the fact that, because some of the data from different sets look quite similar and were used to make similar looking plots, it is not always obvious to tell which plot originated from where, and may be impossible.
I have tried updating the links to relevant documents in the File tab of the PowerPoint (https://support.office.com/en-gb/article/update-or-remove-a-broken-link-to-an-external-file-29485589-816e-4841-81b7-ff90ae5a2cc4), but this has not worked. Can anybody recommend me any other alternative solution?
I ended up just using the version history of the file to go back to a point where the plots still had their proper labels. After I identified a version which still had the plot labeling and was the most updated, I restored that version, and then just manually added the few slides that were missing from a locally saved version of the most updated PowerPoint file.

Changing the values of a drawing using excel or script

I'm currently trying to figure out a way to change the measurement values of a AutoCAD drawing (plot/printed). I have 1 drawing with multiple parts, but the only thing that needs to be changed (almost weekly) and that is the values of some measurements for these parts.
I've looked to Excel for a way to make a sheet where i can fill in these values and they get changed instantly. It can be an .PDF file that gets changed, the drawing needs to be printed anyway so no direct insert into AutoCAD needed.
Any tips or advice is welcome!
Cheers,
NvG

Unlink chart from excel and keep data editable?

for the longest of times I've been trying to achieve this to no avail. It seems like it should be a common problem but still I haven't been able find an answer. What I want to do is:
Have a chart in Excel and/or Powerpoint.
Copy this chart as a chart object into PPT.
Keep all characteristics of the original chart but maintain it editable (i.e. - add/remove axes, data labels etc)
Break the link to the original chart/workbook but keep the data editable. I.e., I want a new excel sheet opened when I want to edit the data, just like it works if I create a new chart object.
Preferably, I would like to convert the data of the original to this new chart sheet but this is not of really high importance.
Basically, I want to be able to use graphs as templates for a new graph without editing the original data. Please help!
PS. I didn't include any code as most of the code I've tried has tried to achieve something else. I mostly want to know if this is even possible to do (it should be!)?

what is the best way to export an animated graph from excel to power point

I have created a series of graphs with excel, that all present the evolution in time of some quantities.So, behind this I have added the macro that defines the evolution of these numbers at its each specific time.
Now, I would like to present these charts on power point as well.
What is the best way to go about it?
Save all these charts as images and then create a gif ?
I would like to know the options so I don't invest too much time in one method that maybe is not the simplest.

Resources