{"action":"closed","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2102","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2102/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2102/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2102/events","html_url":"https://github.com/spyder-ide/spyder/issues/2102","id":57993078,"number":2102,"title":"Latex rendering for plots fails.","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/1%20star","name":"1 star","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Miscelleneous","name":"Miscelleneous","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T22:32:41Z","updated_at":"2015-02-17T22:32:43Z","closed_at":"2015-02-17T22:32:43Z","body":"_From [hembreer...@gmail.com](https://code.google.com/u/112689957933859838790/) on 2015-01-02T11:32:12Z_\n\nSpyder Version:  2.3.0rc\r\nPython Version:  3.4.1\r\nQt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Windows\r\npyflakes >=0.6.0:  0.8.1 (OK)\r\npep8 >=0.6      :  None (NOK)\r\nIPython >=0.13  :  2.1.0 (OK)\r\npygments >=1.6  :  1.6 (OK)\r\nsphinx >=0.6.6  :  1.2.2 (OK)\r\npsutil >=0.3    :  2.1.1 (OK)\r\nrope >=0.9.2    :  0.9.4-1 (OK)\r\nmatplotlib >=1.0:  1.3.1 (OK)\r\nsympy >=0.7.0   :  0.7.5 (OK)\r\npylint >=0.25   :  None (NOK) \n\nWhat steps will reproduce the problem?\n\n 1. Attempt to render latex text on a plot. This used to work and has recently stopped for some unidentified reason. 2. 3. \n\nWhat is the expected output? What do you see instead?\n\n I expect to see a plot with properly formatted labels from latex. Instead I get a plot with no labels and a series of errors from the python console. \r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_qt4.py\", line 299, in resizeEvent\r\n    self.draw()\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_qt4agg.py\", line 154, in draw\r\n    FigureCanvasAgg.draw(self)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py\", line 451, in draw\r\n    self.figure.draw(self.renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\figure.py\", line 1035, in draw\r\n    func(*args)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axes.py\", line 2088, in draw\r\n    a.draw(renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axis.py\", line 1094, in draw\r\n    renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axis.py\", line 1043, in _get_tick_bboxes\r\n    extent = tick.label1.get_window_extent(renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\text.py\", line 755, in get_window_extent\r\n    bbox, info, descent = self._get_layout(self._renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\text.py\", line 321, in _get_layout\r\n    ismath=False)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py\", line 205, in get_text_width_height_descent\r\n    renderer=self)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\texmanager.py\", line 669, in get_text_width_height_descent\r\n    page = next(iter(dvi))\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 85, in __iter__\r\n    have_page = self._read()\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 146, in _read\r\n    self._dispatch(byte)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 234, in _dispatch\r\n    self._fnt_def(k, c, s, d, a, l, n)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 394, in _fnt_def\r\n    tfm = _tfmfile(n[-l:].decode('ascii'))\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 901, in _tfmfile\r\n    return _fontfile(texname, Tfm, '.tfm', _tfmcache)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 891, in _fontfile\r\n    filename = find_tex_file(texname + suffix)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 872, in find_tex_file\r\n    stderr=subprocess.PIPE)\r\n  File \"C:\\Anaconda3\\lib\\subprocess.py\", line 858, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"C:\\Anaconda3\\lib\\subprocess.py\", line 1111, in _execute_child\r\n    startupinfo)\r\nFileNotFoundError: [WinError 2] The system cannot find the file specified\r\nTraceback (most recent call last):\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_qt4.py\", line 299, in resizeEvent\r\n    self.draw()\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_qt4agg.py\", line 154, in draw\r\n    FigureCanvasAgg.draw(self)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py\", line 451, in draw\r\n    self.figure.draw(self.renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\figure.py\", line 1035, in draw\r\n    func(*args)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axes.py\", line 2088, in draw\r\n    a.draw(renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\artist.py\", line 56, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axis.py\", line 1094, in draw\r\n    renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\axis.py\", line 1043, in _get_tick_bboxes\r\n    extent = tick.label1.get_window_extent(renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\text.py\", line 755, in get_window_extent\r\n    bbox, info, descent = self._get_layout(self._renderer)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\text.py\", line 321, in _get_layout\r\n    ismath=False)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py\", line 205, in get_text_width_height_descent\r\n    renderer=self)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\texmanager.py\", line 669, in get_text_width_height_descent\r\n    page = next(iter(dvi))\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 85, in __iter__\r\n    have_page = self._read()\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 146, in _read\r\n    self._dispatch(byte)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 234, in _dispatch\r\n    self._fnt_def(k, c, s, d, a, l, n)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 394, in _fnt_def\r\n    tfm = _tfmfile(n[-l:].decode('ascii'))\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 901, in _tfmfile\r\n    return _fontfile(texname, Tfm, '.tfm', _tfmcache)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 891, in _fontfile\r\n    filename = find_tex_file(texname + suffix)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\matplotlib\\dviread.py\", line 872, in find_tex_file\r\n    stderr=subprocess.PIPE)\r\n  File \"C:\\Anaconda3\\lib\\subprocess.py\", line 858, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"C:\\Anaconda3\\lib\\subprocess.py\", line 1111, in _execute_child\r\n    startupinfo)\r\nFileNotFoundError: [WinError 2] The system cannot find the file specified \n\nPlease provide any additional information below\n\n. Pasting of relevant code\r\nimport matplotlib\r\nimport numpy as np\r\nimport matplotlib.cm as cm\r\nimport matplotlib.pyplot as plt\r\nimport os\r\nfrom matplotlib.colors import LinearSegmentedColormap\r\nimport scipy.io as sio\r\n\\#####\r\n\\# Several hundred lines of data generation and formatting\r\n\\####...\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2102_"}}