Skip to content
← Back to Community
matplotlib error
Profile icon
Soumimimi

Hi everyone ....i'm new here and i 'm learning python with FREECODECAMP It's amazing how i learnt a lot of thngs fast but in project 3 MEDICAL EXAMINATION i have a problem with plt i can't even run the data this is the mssg error if anyone can help
please i'll be thankfull :
Matplotlib created a temporary config/cache directory at /tmp/m
atplotlib-vtagilis because the default path (/config/matplotlib
) is not a writable directory; it is highly recommended to set
the MPLCONFIGDIR environment variable to a writable directory,
in particular to speed up the import of Matplotlib and to bette
r support multiprocessing.
Traceback (most recent call last):
File "main.py", line 7, in
medical_data_visualizer.draw_heat_map()
AttributeError: module 'medical_data_visualizer' has no attribu
te 'draw_heat_map'

Voters
Profile icon
Soumimimi
Comments
hotnewtop
Profile icon
Umar-waqaswaqas

Today I want to tell you how to use SVG file bundles or how to ungroup the SVG files that you buy at Cutcraftdiy.com. In this post you will find: jeep svg

Profile icon
Petrikboss

Online serije, je najposećeniji i najbolji sajt za gledanje serija besplatno - Serije, Filmovi, Tv, Magazin, Forum, Download, Turske Serije" [url=https://emotivci.net]Turske serije[/url]

Profile icon
Petrikboss

Online serije, je najposećeniji i najbolji sajt za gledanje serija besplatno - Serije, Filmovi, Tv, Magazin, Forum, Download, Turske Serije" Turske serije

Profile icon
Umar-waqaswaqas

Programas, Novelas y Series de Telemundo: capítulos completos gratis, Fotos, Entrevistas y Videos de Series y Novelas de Telemundo. Series y Novelas

Profile icon
Abdul-moizmoiz2

In DoramasFlix you will see doramas subtitled online Dramas kdramas, Cdramas, Thai doramas, Jdramas and more. doramas Online

Profile icon
Abdul-moizmoiz2

Ver Doramasmp4 puedes doramas online gratis en Doramasflix español subtitulado, latino, doramas coreanos, chinos, tailandia y japones completas en HD.estrenos doramas

Profile icon
Abdul-moizmoiz2

Self Motivation Importance in Marathi | Self Motivation Importance in… byMarathi Status March 20, 2021 ... https://www.myhindiquotes.com/

Profile icon
Abdul-moizmoiz2

In this post you can find all types of Egypt newspapers, news sites in Arabic. And you can read them online. Cyprus Newspapers https://www.leadnewspapers.com/cyprus-newspapers/

Profile icon
TannerTommy

Being able to understand how to google pandas stuff can improve your work a lot, and if you don't believe in this, you should ask the professional cv writers people for some confirmation. I am sure that they will be more than happy to help you.

Profile icon
PattanAhmed

@Soumimimi Hi,
I got your issue:-
Follow these steps to remove the error from your program:-

  1. Go to medical_data_visualizer.py
  2. Go to line 35
  3. Uncomment the whole function from line 35 to 56 (I mean remove that Hashtag before the Python texts)
  4. Run the file to test
  5. That' it
    Thanks!

With my best wishes
Hope this helps

Profile icon
Soumimimi

@PattanAhmed hi Ahmed Ive done as u said ,well i thaught those where comments we can t uncomment then , but anyway same problem i had to use this thing _ between words but when came to draw heatmap with "sns heatmap " this happen :
File "main.py", line 2, in
import medical_data_visualizer
File "/home/runner/fcc-medical-data-visualizer-8/medical_data_visualizer.py", line 49
Draw_heatmap with 'sns.heatmap'
^
SyntaxError: invalid syntax

i appreciate ur reply thanks u

Profile icon
NoNameByProgram

@Soumimimi that's because Draw_heatmap is not defined.

Profile icon
NoNameByProgram

the function draw_heat_map is commented out in medical_data_visualizer.py.

Profile icon
Soumimimi

thanks for ur reply but it didnt work @NoNameByProgram