Questions tagged as 'matplotlib'

2
answers

Graph differences in matplotlib for different parameter accuracies

For a work of a discipline, I built the following code in Python using the Matplotlib and scikit-image packages: #!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy import interpolate from mpl_toolkits.mplot3d import...
asked by 13.12.2013 / 19:40
2
answers

Matplotlib + Latex: Writing text in the axes in Portuguese

From the beginning, the versions I have are: Ipython: 1.1.0 Matplotlib: 1.3.1 Latex: pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012 / Debian) OS: Ubuntu 12.04 I want to plot what is below, in an Ipython-Notebook session # Using the...
asked by 12.12.2013 / 13:08
1
answer

Generate contour graphics on a map of 360 * 360 positions with weights from 0 to 1

What technique can I use to generate c and d style graphics for this figure? Myinputwillbeinthepattern:X,Yandtheweightofthisposition,whereXandYrangefrom-180°to180°,andtheweightrangesfrom0to1using6housesdecimals, this is the example1 Thi...
asked by 28.03.2014 / 16:35
1
answer

Graph of total connections per second during a denial of service attack

I have a network dump (PCAP file) containing slowloris attacks: ThefollowingscriptwillshowthenumberofconnectionspersecondtoIP192.168.1.2onport80:tcpdump-qns0-A-r1.pcaphost192.168.91.5andport80|sed-une's/^\(.\{8\}\).*IP\(.*\)\.[0-9]\+>192.168...
asked by 24.05.2017 / 16:25
1
answer

Save multiple figures in a loop - Python

I'm using python to analyze experimental data. I have in a folder several data files that, in the script, are grouped according to some criteria. I use a loop to read all the files in the folder, and within the loop, data from the same group is...
asked by 27.02.2014 / 22:40
2
answers

How to save a graphic in a PNG image?

I have some data from an experiment, and would like to save them as PNG. To display the data, I simply do show() . However, I would like to save directly as PNG to not get print out of the screen. How do I display my data: import matp...
asked by 12.12.2018 / 13:40
1
answer

How to resize graphics in IPython Notebook without loss of quality?

In IPython Notebook I produce graphics with (for example): x = [1,2,3,4] y = [5,6,7,8] plot(x, y) When I position the cursor on the generated graph, the tool to resize the graph appears in the lower right corner, but when I resize it it bec...
asked by 14.12.2013 / 22:49
1
answer

Graph of a denial of service attack in Python

Friends, I generated the following chart: Thecodeusedwasasfollows:importmatplotlib.pyplotaspltimportmatplotlib.datesasdatesfromdatetimeimportdatetime,timedeltax=[]y=[]dataset=open("./datasetDdos10Abril2017_unixtime_slowloris.csv","r") ##s...
asked by 21.08.2017 / 18:18
1
answer

How to specify values for my x axis using matplotlib.pyplot?

I am not able to specify values on my x axis, using matplotlib.pyplot. In some images, chart.xticks(years) solves the problem, but it seems that when the x-axis value set is too small, it uses default values [0,1,2, ..., N] A case th...
asked by 21.03.2016 / 03:07
0
answers

How to make an animation show every change in the dataset? With matplotlib

I'm using matplotlib to show my data set in 3d. But I'd like to show each change to the dataset in a 3D chart. And create an animation of it or maybe save the animation. Follow the code I'm using: from mpl_toolkits.mplot3d import Axes3D from m...
asked by 17.07.2017 / 23:18