Matlab Save Figure To Word

How to save file as 300 dpi png? Asked by I am trying to save a figure as a 300 dpi png file. - To run the script, type in the command window the name of the script: matlabplots. The second window appeared on the screen is shown in the figure below and it is also known as an Editor. I worked a lot with EPS figures (from MATLAB) placed in Word documents and exported in PDF with a superb quality. When making plots it is. Can we use a text-editor other than Microsoft Word? iv. The variables, stored in the mat file are changed, but when you later load your figure "as figure" - it is still invisible. printing on lego figures Suppose you have utilized transparency in your figure, yet are asking Matlab to output a figure to PDF, which in the version supported by. Once this step is complete, you should see your Excel file in the current folder section in MATLAB. gl/vsIeA5 Export graphics in MATLAB to other file formats and applications. • Put the complete code and the corresponding outputs (plots) in a Word document. 2 TIPS FOR USING MATLAB 3. Save the Excel file into your MATLAB folder. Slides by Anthony Rossiter 4 Select edit. I want a script for MatLab that reads the 4 sets, and calculates the XIRR. In fact, you can write your entire paper in the MATLAB editor, and then, at the push of a button, generate a Word doc (or LaTex, or HTML, or PowerPoint…) that automatically reflects the structure of the text in the mfile, and that automatically includes graphics and any output you want to show. "The book provides a practical introduction to the most important topics in image and video processing using MATLAB (and its Image Processing Toolbox) as a tool to demonstrate the most important techniques and algorithms. You write and save MATLAB programs in M- les, which have the extension. Demo: Files Question 4 11. But when I use LaTeX to generate. type - List M-file. If you use save to save a figure, then the function displays a warning message. 2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS. This Matlab tutorial shows you how to use ActiveX in Matlab. Changes to your path will be continued if you add the path to your startup. The latest Tweets from Ali Fazal M / میر علی فضل / अली (@alifazal9). transfer than transfers the figure axes to a kml file as an image overlay. I succesfully tried to import eps in Word for Mac, v. Using MATLAB's publish command is a great solution, as other answers have pointed out. Eventually, you will want to print you plot for use in other documents, such as Word, Latex, or a webpage. Creating scripts with a (plain) text editor MATLAB m-files must be plain text files, i. Learn how to save images from MS Word document. plot pdf in matlab When finished constructing the plot, save it as a. Figures can be saved either as Matlab figures or as image files. 35 N We will solve this using Matlab. Answer any questions asked in the problem, by typing into your Word document. This page is intended to give you the information you should know about the MATLAB portion of the course. A new window will be appeared on your screen right after clicking on the New Script. If this is the first time you are saving the file, the Save As dialog box appears. save - Save workspace variables to disk. The examples in this section will continue from Example 1. ME 402: How to Insert MATLAB Figures in MS -Word Documents It is not trivial to embed figures in MS-Word in a way that produces good results. I tried it by saving the figure using the "Save As. So I can say, transpose the numbers 1. There are two ways to save graphs that enable you to save the work you have invested in their preparation: Save the graph as a FIG-file (select Save from the figure File menu). The Easy Way. Before R2014b, I used to select Edit->Copy Figure in Matlab and then Ctrl-V in Word to paste (with the Copy Option being "Preserve information"). Silas Adiko Save your figure as jpg format. This irrefutable fact has been a major reason for making digital forensic (DF). MATLAB: An Introduction with Applications, 3rd Edition. Use the built-in heading styles to number headings and figures in an Appendix. Introduction to Matlab Οικονομίδης Δημήτρης [email protected] Go to the top left corner of the front window of the MATLAB and click on New Script. Execution can usually be terminated by typing control-C. This should bring up a Dialog Box\ 2. Using save to save a figure in R2014b or later makes MAT-file inaccessible in earlier versions of MATLAB. plot pdf in matlab When finished constructing the plot, save it as a. Loading Unsubscribe from M Alam Khan? Microsoft word tutorial |How to insert images into word document table. The complete save_parfor function is given below. Click here for tips on that. features and bugs) of functions such as print. » figure(1) • To have multiple axes in one figure » subplot(2,3,1) or subplot(231) ¾makes a figure with 2 rows and three columns of axes, and activates the first axis for plotting ¾each axis can have labels, a legend, and a title » subplot(2,3,4:6) ¾activating a range of axes fuses them into one • To close existing figures » close([1 3]). Saving Figures To save a figure that can be opened in subsequent MATLAB sessions, save it in a figure file with the. to transfer the results of a figure to MSWord, do either one of the following: - copy (Ctrl-c) it from your plot window and paste (Ctrl-v) it to your Word document, - save the figure (eg, as a bitmap file) using FileÆSave in the plot window menu. Save those images as sequentially named files (ex, image-001. figure(1) - next plot statement will use figure 1. For example, save a bar chart as a bitmap image file. Create a new label (Figure_Apx) to number captions for figures in your Appendix. Learn more about figure, print I still don't understand why the change in MATLAB was made. I have tried setting “Toolbar” to both “figure” and “auto” but it doesn’t makes any difference. filename defines the name of the output file. However, the only way that Matlab will read more than the first row is to open the saved csv file in Word and save. 35 N We will solve this using Matlab. Simulation of Space-Time Trellis Codes. help function name lists information on that function. Related course The course below is all about data visualization: Data Visualization with Matplotlib and Python; Save figure Matplotlib can save plots directly to a file using savefig(). Start at the point in the text where you want the [text + Figure] to be. Simulation of Space-Time Trellis Codes. even when i type print() at the command line MATLAB prints but again its is the GUI figure. MATLAB GRAPHING - Santa Fe Institute. Before we dive into algorithms and problem solving, we need to gain some basic familiarity with MATLAB. This is, of course, a row vector. This guide describes how to do it. m;for example, program1. Generate MATLAB code that can recreate the graph (select Generate M-File from the figure File menu). 4 (Release 14SP2). Useful formats for importing into Word are PostScript, EMF, BMP, and PNG. OR save it using the save button and run is from the command window by pressing. These metrics are regul. Posts about microsoft written by Binlin Wu. so just save the figure as a picture essentially and re copy to the word. MATLAB: An Introduction with Applications, 3rd Edition. Way to go if you need to plot/save a lot of figures. files with none of the special formatting characters included by default in files created by word-processors. I am trying to change the radius of a sphere by using left and right arrow keys, plotted in a MATLAB figure. Simulation performance shows that. There are two ways to save graphs that enable you to save the work you have invested in their preparation: Save the graph as a FIG-file (select Save from the figure File menu). Use this for more complete information and additional options for everything listed on this handout! lookfor word search all help files for a particular word. Only script-, function-, and mat-files are covered here: 1. 4 (Release 14SP2). Save Figure at Specific Size and Resolution Use Screen Size and Resolution. Transparent background for figures. However, the file extensions are invisible. However, is there a way to copy the fig file as an embedded object into Word, so that anyone reading the doc on a computer (equipped with Matlab) can double click on the icon in the Word doc and launch Matlab to open the figure?. Saving and Opening Figures. Mar 02, 2016 · Animate a MATLAB figure by pressing left and right arrow keys. 2 Matlab figure as it appears on the computer screen map) to be saved to the clipboard as well as the figure background colour. Therefore, it's best to manually specify the tick marks so that they are correctly preserved in both display and saving. MATLAB Environment In Windows or Apple operating systems click on the desktop icon - In Unix/MSDOS type MATLAB -at the shell prompt dr. Keep in mind that the figures might not be directly in your workspace. Importing and Exporting Data from MATLAB and Simulink to Excel Rev 021704 4 In this window, select ~ Create vectors from each column using column names. 2 Matlab figure as it appears on the computer screen map) to be saved to the clipboard as well as the figure background colour. Finally, I use the saveas function to save the figure as a meta file (Windows Enhanced metafile,. Using MATLAB's publish command is a great solution, as other answers have pointed out. Related course The course below is all about data visualization: Data Visualization with Matplotlib and Python; Save figure Matplotlib can save plots directly to a file using savefig(). If you are looking for more control in terms of how the different figures are combined, another solution is to use pdflatex to compile the figures into a single PDF. You could change the default page size that MATLAB uses for output to something more reasonable for your images. Matlab R2010a Installation Instructions CWRU Software Center LICENSE FILE NAME: license_052610. figure captions, as/if needed. >> plot(t,s) % plots the sinewave vs. does not work because Matlab is unsure if the name of the file. I save a graphic as. gl/kDvGHt Ready to Buy: https://goo. In this section, we will provide lists of commonly used general MATLAB commands. I would like to copy them to a word document without exporting and converting them to a. - To run the script, type in the command window the name of the script: matlabplots. This word embedding file is only used for training. The MATLAB version used here is 2016b for other versions it is. (Figure windows only) Other output formats are possible by using the GhostScript application supplied with MATLAB to convert PostScript output into a format suitable for many different kinds of printers. Using the data provided create the following plots. MZDDE combines the two into a beautiful partnership, but not without minor speed bumps. There are several ways you can do this. AVI files can be used for animated sequences and do not need MATLAB to run, but do require an AVI viewer. you can save and quit both Matlab and Word. Then save the macro and edit it and look what commands the macro recorder put in there. If you set the IntegerHandle property to 'off' , MATLAB does not assign an integer value to the UI figure, and it sets the Number property to an empty array. 1 post published by Binlin Wu on September 21, 2009. This M-file. How can I change MATLAB's output format or precision? Matlab always works in double precision (unless you are using the Symbolic Math Toolbox), but output display can be changed with the "format" command. 1 (Release 14SP1) March 2005 Online only Revised for MATLAB 7. You can change it in Matlab by entering into the Matlab command window: edit startup Then add the path to file the same way you would in the command line. isOpen – Determine whether specified file. Hi, I was collating few matlab figures to one pdf using export_fig. MATLAB Scripts. Ghaleb, in MATLAb simulink 2013b there is no option to save as figure or print in the constellation diagram block. fig, in MATLAB. The application matlabfigviewer allows to view files in Matlab figure format (*. When you set up Matlab for the first time, you should create a folder/directory on your disk somewhere and. Figure 1: Example output of plotting a function. Mar 02, 2016 · Animate a MATLAB figure by pressing left and right arrow keys. AVI files can be used for animated sequences and do not need MATLAB to run, but do require an AVI viewer. MATLAB Central gives you support and solutions from over 100,000 community members and MathWorks employees. Click: Table Insert Table , and make a Table with two columns and one row. the data is selected it is returned to the DapperM interface. Saving and Opening Figures. This invokes the Preferences dialog box. One can use it for many applications. Help us to improve this answer Please suggest an improvement (login needed, link opens in new window). MATLAB Environment In Windows or Apple operating systems click on the desktop icon - In Unix/MSDOS type MATLAB -at the shell prompt dr. After entering several Matlab commands, use the up or down arrow keys to see previous commands which can now be edited and re-run by simply pressing the enter key. ” (These files are named. First: Is there a way where I can resize the viewing window for all of the figures without doing it one at a time? Second: Is there a way I can save them all at once into a PDF? Doing 'File -> Save as' for each figure gets time consuming. This irrefutable fact has been a major reason for making digital forensic (DF). gr http://www. These metrics are regul. In the left pane of the dialog box, select Figure Copy. I can have MATLAB make a string variable that says the words that need to be placed in the Word document at the specific points. Lets say a have a graph plot(x,y) and want to save that image to a new word document. How to generate high quality Graphics/Figures/Graphs in Matlab M Alam Khan. 5 Matlab help on print PRINT Print figure or model. For example, suppose you have an image 'test_img. eps" % Encapsulated PostScript for LaTeX or "print -dmeta myfig. Recently, I changed to Office Pro Plus 2016 and Acrobat DC 2017 (because XI Pro not compatible with Office 2016). emf" % Windows metafile for Word Templates: ----- Do not hope to get some tricks (special layouts, etc) easily, if you. 6 contains code for saving an image. The Path is a list of places that Matlab looks for programs. The benefit of a transparent background (as opposed to white) for printing is that if you overlay two figures with a transparent background the top figure doesn't block the bottom figure. [For Linux/Sun] Using Matlab together with LaTeX. save filename var1 var2 var3 … save filename will save all variables. Use Heading 1 to 5 styles for the main body of the document. opens the file, ExampleFile. Figures and plots can also be pasted into the Word document. My format of choice is eps but I can use other formats too. I know how to use the Publish and notebook functionality to copy figures into Word documents. This section will introduce you to how to use the MATLAB within the scope of physics laboratory experiments. pdf format, but matlab will produce an A4 size to put this small picture in the middle of this A4 size pdf. This Matlab tutorial shows you how to use ActiveX in Matlab. The fonts you use in MATLAB can say a lot about your presentation. Figure 1: figure generated by Matlab for use as an example Here Figure 1 is generated by Matlab. Only the MATLAB figure (. m‐files are interpreted programs, called scripts, and are not compiled before running. The panels for example. 1) Copy the Figure from Matlab 1) In the Matlab figure toolbar, pull down the Edit menu and select Copy Figure: The plot is copied without further input from you. Export graph. MZDDE combines the two into a beautiful partnership, but not without minor speed bumps. Another helpful feature is that Matlab keeps track of the history of commands you enter. Save the Plot as a jpeg file Open a Microsoft Word Document and type your name at the top of the page Use Insert Picture to insert the jpeg figure you created into this word document. Delete any figures before using save. To save your figure as a graphics-format file, specify a format switch and filename. Unfortunately, not all maths operations can be carried out by counting with our fingers or turning to a. As an example, download the following model file by right-clicking on the following link and saving the file in the directory you are running MATLAB from. » figure(1) • To have multiple axes in one figure » subplot(2,3,1) or subplot(231) ¾makes a figure with 2 rows and three columns of axes, and activates the first axis for plotting ¾each axis can have labels, a legend, and a title » subplot(2,3,4:6) ¾activating a range of axes fuses them into one • To close existing figures » close([1 3]). If you save it as EPS, note that in Word only the TIFF preview is displayed on the screen, but the output to paper or to a pdf contains the smooth vector graphics. This creates a file called filename. xlsx', arr) this saves the array arr in data. MATLAB GRAPHING Using MATLAB 6 (Release 12) As with paper and pencil graphing, it is often necessary to plot data in a variety of ways in order to see if a common type of graphing scheme will cause the data to lie on a straight line (as opposed to a curve). Saving Plots (5:49) If you want to save your MATLAB plot as an image for uploading to the dropbox or including in another application, you should use the File/Save As from the figure window. Save as an Enhanced Metafile (EMF). Notice the set command in the lines of code shown above, which can be implemented in general by using the following syntax. Okay,soy=sin(x)assigns ythe ar- ray [sin(0) sin(1) sin(2) sin(3) sin(4) sin(5)]. For example, the following statements assign a numerical value to x and a string value to y. To print out your figure using this format, use the print command:. A word of warning, though: This does not save every command you have typed into your workspace; it only saves your variable. There are two ways to save graphs that enable you to save the work you have invested in their preparation: Save the graph as a FIG-file (select Save from the figure File menu). For this, MATLAB provides several data export options. Use Heading 6 to 9 styles for the Appendix. This controller has been selected due to the ability of the block diagrams that can be built in the Matrix Laboratory (MATLAB) Simulink. MATLAB is a technical computing environment for high-performance numeric computation and visualization. In Matlab, you can create a cropped PDF by setting the papersize to the same size as the graphic; see this small figuresize. This creates a file called filename. X,Y labels with units. Aujourd'hui je recherchais comment mettre une figure MATLAB issues d'un PLOT de manière automatique dans un document Word. I usually export my MATLAB figures to Adobe Illustrator. The following characters cannot be used in filenames: The following characters cannot be used in filenames: You're not allowed to use the name of a reserved word as the name of a file. docx at the end of the file name, you *MUST* follow this tutorial for this to work (this will help you show file extensions in Windows Explorer). These figures and company logo along with some text should appear in the report. gl/kDvGHt Ready to Buy: https://goo. Figures can be saved either as Matlab figures or as image files. The examples in this section will continue from Example 1. If you are familiar with MATLAB programming language, you will find easy, to use the provided source codes for DBSCAN. I can transform a row vector into a column vector by taking its transpose. to transfer the results of a figure to MSWord, do either one of the following: - copy (Ctrl-c) it from your plot window and paste (Ctrl-v) it to your Word document, - save the figure (eg, as a bitmap file) using FileÆSave in the plot window menu. For example, save a bar chart as a bitmap image file. Usually I generate a matlab plot using plot command and then save it for offline viewing. m" in order to use it. Define the inputs and output similar to example 1. Microsoft Office Access 2007. This is actually pretty cool, because you can prepare your plot in MATLAB including all kinds of features (e. This section will introduce you to how to use the MATLAB within the scope of physics laboratory experiments. Article Views are the COUNTER-compliant sum of full text article downloads since November 2008 (both PDF and HTML) across all institutions and individuals. Transparent background for figures. MATLAB is an interactive program for numerical computation and data visualization. From your figure, select File->Save as and choose a file type in the dialog. function m-files (. saveas - Save Figure or model to desired output format. 1 Exporting Graphics from MATLAB to WORD and Editing Details Given a graphical plot in MATLAB, say graph. A new window will be appeared on your screen right after clicking on the New Script. If necessary, e. You cannot now save an eps or. How to export plotly graphs as static images in MATLAB. Because they contain commands, script les are sometimes called command les. quit - Quit MATLAB session. Each figure will be on its own page. If you are looking for more control in terms of how the different figures are combined, another solution is to use pdflatex to compile the figures into a single PDF. Select a directory, type SayHello. Delete any figures before using save. These were the type of results I was trying for. is there a way to REMOVE this text? I tried overwriting it with ' ' and making the color white, font size 0, but none of these will remove the text. This is the "source code" for MatLab programs. During program I 'm getting a number of figures. what - List MATLAB-specific files in directory. help function name lists information on that function. The group contains the following buttons: - “Load”: used to load the contents of a data file to the workspace. And, it could even edit any file and SAVE it even no matter if it’s a fillable or savable form. makes a figure with 2 rows and 3 columns of axes, and activates the first axis for plotting each axis can have labels, a legend, and a title »TVCQMPU activates a range of axes and fuses them into one • To close existing figures »DMPTF < > closes figures 1 and 3 »DMPTF BMM closes all figures (useful in scripts) 26. eLetters are not edited, proofread, or indexed. variables in a MATLAB session can be saved with the menu option File, Save Workspace As, which will allow you to save your workspace as a. It has the ability to integrate visuals, computations, and programming in a user-friendly manner. Keep in mind that emf cannot cope with some shapes, gradients and fonts that eps/pdf/whatever can cope with. Help us to improve this answer Please suggest an improvement (login needed, link opens in new window). There were some data from a table and a few figures that needed to be written and fortunately no other formatting, e. Short MATLAB History - Company Profile: The MathWorks, Inc. One can use it for many applications. 2 Signal representations in MATLAB. Another helpful feature is that Matlab keeps track of the history of commands you enter. Ask Question 3. This is the "source code" for MatLab programs. To plot both curves in the same window you can add the commands below to your script. You can also save multiple figures to an AVI file using the MATLAB avifile and addframe functions. How to save your data from ADS data display window to a disk You can plot the data with MATLAB and compare it with the network analyzer plots: (1) On the graph window in ADS (Data display window), click on a graph that you want to save the data. The latest Tweets from Ali Fazal M / میر علی فضل / अली (@alifazal9). Activate the plugin through the 'Plugins' menu in Word Press. The digital revolution we are witnessing nowadays goes hand in hand with a revolution in cybercrime. However if I open Matlab again and do "Figure/Edit/copy figure and past" all the earlier figures will become corrected!. printing on lego figures Suppose you have utilized transparency in your figure, yet are asking Matlab to output a figure to PDF, which in the version supported by. For this, MATLAB provides several data export options. As you can see, Figure 1 is now one step closer to being ready for publication. – MATLAB native fig format will save the figure in it's exact state – good idea to save it this way if you customize with the GUI) Screen grab – useful if you need a particular size, and need an image file. Save your figure as jpg format. figure(4) - next plot statement will use figure 4. Feature Description Product Filter Establish which products to find help on. A sample output of this algorithm follows. If you use save to save a figure, then the function displays a warning message. EPS and Word play together excellently. The data shown in Table 1 below is to be presented in a graphical format, using the graph of your choice. To save only part of a figure, such as an axes, or to save handles in addition to the data, use the save function to create a MAT-file. This is one method I use to deal with this problem. MATLAB's GUIDE • GUIDE - Graphical User Interface Development Environment • Allows the user the capability to build GUIs the contain inputs, options and outputs all on one figure. actxcontrol takes PROGID of ActiveX, position and figure handle of a window to create control. But after that, I find that all. The only problem is the display on the screen, when you embed a low-resolution TIFF in the EPS. fig files •. To set the resolution of the output file for a built-in MATLAB format, use the -r switch. Kutools for Word's Insert Figure Caption utility will allow us to quickly insert or add a caption for a figure with only one click. The problem I have is how to have MATLAB open the Word document and find/replace the desired lines of text. script m-files (. of columns) mat3word=mat2word~=0;. Have you ever wanted to export MATLAB figures to Microsoft® PowerPoint® for presentation purposes? There are a number of ways you can accomplish this. if i type just print() at in the pushbutton, MATLAB prints, however it prints the GUI figure instead of the figure that is displayed after the pushbutton is activated. With a white background you cannot stack figures. The digital revolution we are witnessing nowadays goes hand in hand with a revolution in cybercrime. How do I run MATLAB and Microsoft Word? iii. • Put the complete code and the corresponding outputs (plots) in a Word document. MATLAB, and what types of add-on application-specific solutions are available in MATLAB toolboxes. Transparent figures from 2014b are not Learn more about matlab 2014b, figure, transparent background, copy figure, axes color none, transparent, axes. So MATLAB is a very versatile software. I agree all the arguments against the "rainbow" colormap theme For example see here I would probably change the colormap in the future projects. The plot looks fine in Matlab, but when I open the png file I get the same problem - a totally black figure. h=plot(t,y) saveas(h, 'filename. You can create the following type of files − Rectangular, delimited ASCII data file from an array. You can change it in Matlab by entering into the Matlab command window: edit startup Then add the path to file the same way you would in the command line. i'm using basic graphics on matlab where i use text(x,y,'text as string') to display text on a plot. This is, of course, a row vector. I want a script for MatLab that reads the 4 sets, and calculates the XIRR. When I copy the figure from "Figure/Edit/copy figure" and paste it into word, the figure is correctly pasted but when I restart the computer the text on the y-axis corrupts. So the next best option is to save it as another file type, in which case I have 2 report files. Saving Figures To save a figure that can be opened in subsequent MATLAB sessions, save it in a figure file with the. Exporting a figure from MATLAB the way you want it (hopefully the way it looks on screen), can be a real headache for the unitiated, thanks to all the settings that are required, and also due to some eccentricities (a. I want to save multiple figures to the same folder, with the name of figure_1, figure_2, etc. In my next post, I will go over how to use the Editor to write down more complicated code. From your figure, select File->Save as and choose a file type in the dialog. But recently I learnt how to make GUI using MATLAB because my project needed this. word: function Function name should match MATLAB file name If more than one output, must be in brackets • No need for return: MATLAB 'returns' the variables whose names match those in the function declaration • Variable scope: Any variables created within the function but not returned disappear after the function stops running. You can resize the figure by placing the mouse arrow over the edges of the graph and clicking and dragging. In addition, Matlab’s text interpreter must be set to handle LATEX. When I have to do the same for, say, 1000 plots, displaying each of them before saving becomes time consuming. eps file from the contents. The instructions will also save time to figure out a many things in the procedure of building you possess shed. Basic MATLAB Interface Command window: Type your instructions here and press ENTER to execute them. A format that works well for most purposes is the % PNG (Portable Graphics Format). If you set the IntegerHandle property to 'off' , MATLAB does not assign an integer value to the UI figure, and it sets the Number property to an empty array. After opening the window we can draw on it. after producing a fig. 2 Matlab figure as it appears on the computer screen map) to be saved to the clipboard as well as the figure background colour. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: