python - have some wondering about matplotlib -


  आयात के रूप में nppy आयात matplotlib.pyplot plt xx1 = np.random.randint (1,7,100) xx2 के रूप में = np.random.randint (1,7,100) पासा = xx1 + xx2 plt.hist (पासा, मानद = सच) plt.show ()   
  1. क्या मानदंड = सच है
  2. एक कथानक करते समय, हमें plt.figure () के साथ पहले खोलना होगा?
  3. matplotlib का उपयोग करके एक ग्राफ आकर्षित करने में सक्षम होने के लिए, क्या इसे एनपी सरणी होना चाहिए या यह नियमित सूची के साथ काम हो सकता है? जैसे। श्रेणी (100)

    1. <पी > यहां दस्तावेज़ देखें:
    2. आपको हमेशा plt.figure () को कॉल करने की ज़रूरत नहीं है। आपके एक उदाहरण के रूप में प्रदर्शित करने के लिए आपको इसे एक एकल आकृति का पता लगाने की आवश्यकता नहीं है। हालांकि कई आंकड़ों के लिए (उपखंडों के विपरीत) आपको इसके उपयोग की आवश्यकता होगी।

    3. हां, यह नियमित सूचियों के साथ काम करेगा। < / Ol>

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -