# 如何手动调节colorbar选取范围

``````using Plots

heatmap(rand(100, 100), color=:turbo, size=(600, 500))
``````

colorbar的范围选取同时意味着你需要对超出范围的值进行处理：

1. 超出范围的值取max, min分别对应的值：
``````heatmap(rand(100, 100), color=:turbo, size=(600, 500), clim=(0.2,0.8))
``````

``````m = rand(10,10)
{"ft_lang_label":"__label__zh","ft_lang_prob":0.5180524,"math_prob":0.99958414,"size":425,"snap":"2023-14-2023-23","text_gpt3_token_len":243,"char_repetition_ratio":0.13776723,"word_repetition_ratio":0.3809524,"special_character_ratio":0.43058825,"punctuation_ratio":0.29411766,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97682434,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-31T00:54:35Z\",\"WARC-Record-ID\":\"<urn:uuid:7549f57c-5108-4105-8160-4aca4f9f6430>\",\"Content-Length\":\"17221\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a8ed99fa-7417-4ab1-8d94-2836f9761633>\",\"WARC-Concurrent-To\":\"<urn:uuid:2ba21020-0a7d-41a2-86e2-65ca7f193164>\",\"WARC-IP-Address\":\"47.95.118.149\",\"WARC-Target-URI\":\"https://discourse.juliacn.com/t/topic/6991\",\"WARC-Payload-Digest\":\"sha1:WRAHR42QZIFQ66NO7VGNZYIPJC7NJ7DW\",\"WARC-Block-Digest\":\"sha1:SU457TL5DNTD4MIAOUC6J6F52JIHGDGN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296949506.62_warc_CC-MAIN-20230330225648-20230331015648-00675.warc.gz\"}"}