## Bar charts with error bars using Python and matplotlib

Bar charts with error bars are useful in engineering to show the confidence or precision in a set of measurements or calculated values. Bar charts without error bars give the illusion that a measured or calculated value is known to high precision or high confidence. In this post, we will build a bar plot using Python and matplotlib. The plot will show the coefficient of thermal expansion (CTE) of three different materials based on a small data set. Then we'll add error bars to this chart based on the standard deviation of the data.
{"ft_lang_label":"__label__en","ft_lang_prob":0.85232455,"math_prob":0.8798451,"size":601,"snap":"2021-31-2021-39","text_gpt3_token_len":116,"char_repetition_ratio":0.12730318,"word_repetition_ratio":0.01980198,"special_character_ratio":0.19301164,"punctuation_ratio":0.07964602,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9798468,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-26T05:39:16Z\",\"WARC-Record-ID\":\"<urn:uuid:202db2e9-34cd-4dfa-a455-fda769d3af78>\",\"Content-Length\":\"22554\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f5bd1f68-9d08-4787-922d-904721adb8e0>\",\"WARC-Concurrent-To\":\"<urn:uuid:e24e998a-ba44-4721-beaa-df4ee53b8309>\",\"WARC-IP-Address\":\"185.199.109.153\",\"WARC-Target-URI\":\"https://pythonforundergradengineers.com/tag/matplotlib4.html\",\"WARC-Payload-Digest\":\"sha1:7N3EM5UWLNZYJI45TU7Z2PLNYOWSTLPQ\",\"WARC-Block-Digest\":\"sha1:WJSSST26V4WUBBGK5IKPAU6OJ3SOWLBH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046152000.25_warc_CC-MAIN-20210726031942-20210726061942-00223.warc.gz\"}"}