Since you are new, let us show you how Trendy works.

Close-button

Plot for Gasoline pump price between Elf and Hyper U

Here I compare the price of SP95 between the 2 nearest stations of Corbières

This will help me to choose the cheapest petrol. Elf often seems the best choice.

Plot Image
% Gasoline pump price between  Elf and  Hyper U 
%   time vector is: time1732
%   data vector is: data1732

%% Get the price
prices = data1732;
Elf_prices = prices(:,1);
U_prices =prices(:,2);

%% plot 
plot(time1732,U_prices ,'bo','displayname','Hyper U','linewidth',5)
hold on
plot(time1732,Elf_prices,'go','displayname','Elf','linewidth',5)

%% format plot
ymin = min(min(prices)) -0.005;

ymax = max(max(prices))+0.005;
ylim([ymin ymax])
ylabel('Euros')
title(['@ ' datestr(now)  'Gasoline pump price '])
datetick
legend('location','best')
grid
Tags:

    Add Tags


    0 comments