<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22113/index.php?action=history&amp;feed=atom&amp;title=Scientific_Libraries%2C_Plotting</id>
	<title>Scientific Libraries, Plotting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22113/index.php?action=history&amp;feed=atom&amp;title=Scientific_Libraries%2C_Plotting"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22113/index.php?title=Scientific_Libraries,_Plotting&amp;action=history"/>
	<updated>2026-05-14T19:28:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22113/index.php?title=Scientific_Libraries,_Plotting&amp;diff=40&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;__NOTOC__ {| width=500  style=&quot;font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;&quot; |Previous: Scientific Libraries, Statistics |Next: Last words |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/22113_12-Plotting.pptx Plotting]&lt;br&gt; &lt;!-- Resource: Example code - File Reading&lt;br&gt; --&gt;  == Subjects covered == matplotlib&lt;br&gt; seaborn  == Exercises to be handed in == # Generate a large nu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22113/index.php?title=Scientific_Libraries,_Plotting&amp;diff=40&amp;oldid=prev"/>
		<updated>2024-03-06T14:08:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {| width=500  style=&amp;quot;font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;&amp;quot; |Previous: &lt;a href=&quot;/22113/index.php/Scientific_Libraries,_Statistics&quot; title=&quot;Scientific Libraries, Statistics&quot;&gt;Scientific Libraries, Statistics&lt;/a&gt; |Next: &lt;a href=&quot;/22113/index.php/Last_words&quot; title=&quot;Last words&quot;&gt;Last words&lt;/a&gt; |} == Required course material for the lesson == Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/22113_12-Plotting.pptx Plotting]&amp;lt;br&amp;gt; &amp;lt;!-- Resource: &lt;a href=&quot;/22113/index.php?title=Example_code_-_File_Reading&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Example code - File Reading (page does not exist)&quot;&gt;Example code - File Reading&lt;/a&gt;&amp;lt;br&amp;gt; --&amp;gt;  == Subjects covered == matplotlib&amp;lt;br&amp;gt; seaborn  == Exercises to be handed in == # Generate a large nu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{| width=500  style=&amp;quot;font-size: 10px; float:right; margin-left: 10px; margin-top: -56px;&amp;quot;&lt;br /&gt;
|Previous: [[Scientific Libraries, Statistics]]&lt;br /&gt;
|Next: [[Last words]]&lt;br /&gt;
|}&lt;br /&gt;
== Required course material for the lesson ==&lt;br /&gt;
Powerpoint: [https://teaching.healthtech.dtu.dk/material/22113/22113_12-Plotting.pptx Plotting]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;!-- Resource: [[Example code - File Reading]]&amp;lt;br&amp;gt; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Subjects covered ==&lt;br /&gt;
matplotlib&amp;lt;br&amp;gt;&lt;br /&gt;
seaborn&lt;br /&gt;
&lt;br /&gt;
== Exercises to be handed in ==&lt;br /&gt;
# Generate a large number of values between 0 and 1 using NumPy and save it in a variable. Use matplotlib to plot the linear function, the quadratic function and the cubic function of the numbers. Remember to add elements to the plot that makes sense (legend, title, etc.)&lt;br /&gt;
# Load the file &amp;#039;&amp;#039;pathogen_abundance.tab&amp;#039;&amp;#039; in a dataframe using pandas. Show the 15 pathogens with the highest CLR-value in a plot. Remember to add plot title, axis, etc.&lt;br /&gt;
# To solve this exercise, you need the file &amp;#039;&amp;#039;resfinder_project.tsv&amp;#039;&amp;#039;, which you made in exercise 5 from [[Scientific Libraries, Pandas, Numpy]]. The task is to make a heatmap that displays the sum of the MIC values of the different antimicrobials for the 3 different types of organisms that are available. Hints: Groupby &amp;amp; Seaborn.&lt;br /&gt;
# Advanced plotting: Load the file &amp;#039;&amp;#039;Bioreactor_results.csv&amp;#039;&amp;#039; as a pandas dataframe and take a look at the data. Note that the numbers in the file are in English notation. The data shows two types of experiments that have been done (Replicate 1 and 2) for a number of different strains of fungi. The wild type (ATCC 1015) is also shown.&amp;lt;br&amp;gt;Imagine that you are a PhD student and your supervisor wants you to make a plot that shows the growth of the different strains of fungi in each experiment together in one plot.&amp;lt;br&amp;gt;Think about how you want to make this plot. How could you do it in a way that makes sense?&amp;lt;br&amp;gt;Now, take a look at the plot that your supervisor made. Try to replicate the plot using the methods that you have learned. This is more difficult than it looks like!&lt;br /&gt;
# Return to exercise 1 last week, [[Scientific Libraries, Statistics]]. Generate 10000 datasets with 1000 data points. Set the &amp;#039;&amp;#039;pvalue&amp;#039;&amp;#039; cutoff to 0.95. This way the samples that makes the cut will be &amp;quot;good&amp;quot; normal distributed samples. In a single plot, plot all the &amp;quot;bad&amp;quot; datasets with red, the &amp;quot;good&amp;quot; datasets with green, and the best dataset (largest &amp;#039;&amp;#039;pvalue&amp;#039;&amp;#039;) with blue. It should look similar to this. Hint: gaussian_kde&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Picture1.png|Plot for exercise 1&lt;br /&gt;
File:Picture2.png|Plot for exercise 2&lt;br /&gt;
File:Picture3.png|Plot for exercise 3&lt;br /&gt;
File:Picture4.png|Plot for exercise 4&lt;br /&gt;
File:normaldistributionplot.png|Plot for exercise 5&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Exercises for extra practice ==&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>