The possibility to change the line style with options Bar and HBAR is now implemented.
{
TCanvas *c1 = new TCanvas("c1", "c1",10,45,700,502);
c1->Divide(2,1);
TH1F *hpx = new TH1F("hpx","This is the px distribution",10,-4,4);
hpx->SetBinContent(0,1);
hpx->SetBinContent(1,1);
hpx->SetBinContent(2,1);
hpx->SetBinContent(3,1);
hpx->SetBinContent(4,1);
hpx->SetBinContent(6,1);
hpx->SetBinContent(7,2);
hpx->SetBinContent(8,4);
hpx->SetBinContent(9,4);
hpx->SetBinContent(10,5);
hpx->SetBarWidth(0.5);
hpx->SetFillStyle(0);
hpx->SetLineColor(kRed);
hpx->SetLineStyle(kDashed);
c1->cd(1); hpx->Draw("HBAR");
c1->cd(2); hpx->Draw("BAR");
}